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/pxa3xx-gcu.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'drivers/video/pxa3xx-gcu.c') diff --git a/drivers/video/pxa3xx-gcu.c b/drivers/video/pxa3xx-gcu.c index 1ed8b366618d..1d71c08a818f 100644 --- a/drivers/video/pxa3xx-gcu.c +++ b/drivers/video/pxa3xx-gcu.c @@ -747,20 +747,7 @@ static struct platform_driver pxa3xx_gcu_driver = { }, }; -static int __init -pxa3xx_gcu_init(void) -{ - return platform_driver_register(&pxa3xx_gcu_driver); -} - -static void __exit -pxa3xx_gcu_exit(void) -{ - platform_driver_unregister(&pxa3xx_gcu_driver); -} - -module_init(pxa3xx_gcu_init); -module_exit(pxa3xx_gcu_exit); +module_platform_driver(pxa3xx_gcu_driver); MODULE_DESCRIPTION("PXA3xx graphics controller unit driver"); MODULE_LICENSE("GPL"); -- cgit v1.2.3