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/amifb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'drivers/video/amifb.c') diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c index 7fa1bf82372..77cb4ffa1fe 100644 --- a/drivers/video/amifb.c +++ b/drivers/video/amifb.c @@ -3788,19 +3788,7 @@ static struct platform_driver amifb_driver = { }, }; -static int __init amifb_init(void) -{ - return platform_driver_probe(&amifb_driver, amifb_probe); -} - -module_init(amifb_init); - -static void __exit amifb_exit(void) -{ - platform_driver_unregister(&amifb_driver); -} - -module_exit(amifb_exit); +module_platform_driver_probe(amifb_driver, amifb_probe); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:amiga-video"); -- cgit v1.2.3-18-g5258