From: Axel Lin Date: Fri, 9 Dec 2011 01:57:53 +0000 (+0800) Subject: video: convert mbxfb to use module_platform_driver() X-Git-Tag: upstream/snapshot3+hdmi~7902^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70f6255a488f62a8f054907479b0eb6615b9bcb5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git video: convert mbxfb to use module_platform_driver() This patch converts mbxfb to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Mike Rapoport Signed-off-by: Axel Lin Signed-off-by: Florian Tobias Schandinat --- diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c index 6ce3416..55bf619 100644 --- a/drivers/video/mbx/mbxfb.c +++ b/drivers/video/mbx/mbxfb.c @@ -1053,18 +1053,7 @@ static struct platform_driver mbxfb_driver = { }, }; -int __devinit mbxfb_init(void) -{ - return platform_driver_register(&mbxfb_driver); -} - -static void __devexit mbxfb_exit(void) -{ - platform_driver_unregister(&mbxfb_driver); -} - -module_init(mbxfb_init); -module_exit(mbxfb_exit); +module_platform_driver(mbxfb_driver); MODULE_DESCRIPTION("loadable framebuffer driver for Marathon device"); MODULE_AUTHOR("Mike Rapoport, Compulab");