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/s3c-fb.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'drivers/video/s3c-fb.c') diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 12eaee0b29e6..cf1d11f5bfb8 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -2003,18 +2003,7 @@ static struct platform_driver s3c_fb_driver = { }, }; -static int __init s3c_fb_init(void) -{ - return platform_driver_register(&s3c_fb_driver); -} - -static void __exit s3c_fb_cleanup(void) -{ - platform_driver_unregister(&s3c_fb_driver); -} - -module_init(s3c_fb_init); -module_exit(s3c_fb_cleanup); +module_platform_driver(s3c_fb_driver); MODULE_AUTHOR("Ben Dooks "); MODULE_DESCRIPTION("Samsung S3C SoC Framebuffer driver"); -- cgit v1.2.2