From 3ccbf89f4d86cc8f4d6645fa5db0327ef835777b Mon Sep 17 00:00:00 2001 From: Fabio Porcedda Date: Fri, 15 Mar 2013 14:02:38 +0100 Subject: drivers: video: use module_platform_driver_probe() This patch converts the drivers to use the module_platform_driver_probe() macro which makes the code smaller and a bit simpler. Signed-off-by: Fabio Porcedda Cc: Florian Tobias Schandinat Acked-by: Nicolas Ferre # atmel_lcdfb.c Cc: Tomi Valkeinen Cc: David Howells Cc: Geert Uytterhoeven Acked-by: Laurent Pinchart # amifb.c Cc: Kuninori Morimoto Signed-off-by: Tomi Valkeinen --- drivers/video/atmel_lcdfb.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'drivers/video/atmel_lcdfb.c') diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 025428e04c33..98348ec0b3ce 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -1158,18 +1158,7 @@ static struct platform_driver atmel_lcdfb_driver = { }, }; -static int __init atmel_lcdfb_init(void) -{ - return platform_driver_probe(&atmel_lcdfb_driver, atmel_lcdfb_probe); -} - -static void __exit atmel_lcdfb_exit(void) -{ - platform_driver_unregister(&atmel_lcdfb_driver); -} - -module_init(atmel_lcdfb_init); -module_exit(atmel_lcdfb_exit); +module_platform_driver_probe(atmel_lcdfb_driver, atmel_lcdfb_probe); MODULE_DESCRIPTION("AT91/AT32 LCD Controller framebuffer driver"); MODULE_AUTHOR("Nicolas Ferre "); -- cgit v1.2.2