From 4277f2c4667187cbbdd3da3be31ee681bc6b8300 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sat, 26 Nov 2011 10:25:54 +0800 Subject: video: convert drivers/video/* to use module_platform_driver() This patch converts the drivers in drivers/video/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Ben Dooks Cc: Manuel Lauss Signed-off-by: Axel Lin Acked-by: Wan ZongShun Acked-by: Sascha Hauer Acked-by: Lennert Buytenhek Acked-by: Alexey Charkov Acked-by: Damian Hobson-Garcia Acked-by: Jingoo Han Signed-off-by: Florian Tobias Schandinat --- drivers/video/sh_mobile_lcdcfb.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'drivers/video/sh_mobile_lcdcfb.c') diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index 1f49ab4..a264ebf 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -1709,18 +1709,7 @@ static struct platform_driver sh_mobile_lcdc_driver = { .remove = sh_mobile_lcdc_remove, }; -static int __init sh_mobile_lcdc_init(void) -{ - return platform_driver_register(&sh_mobile_lcdc_driver); -} - -static void __exit sh_mobile_lcdc_exit(void) -{ - platform_driver_unregister(&sh_mobile_lcdc_driver); -} - -module_init(sh_mobile_lcdc_init); -module_exit(sh_mobile_lcdc_exit); +module_platform_driver(sh_mobile_lcdc_driver); MODULE_DESCRIPTION("SuperH Mobile LCDC Framebuffer driver"); MODULE_AUTHOR("Magnus Damm "); -- cgit v1.1