From f806f9b6b8ec2c8b6a3297e684bcb80f54e3dc98 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 9 Dec 2011 09:59:56 +0800 Subject: video: omap: convert drivers/video/omap/* to use module_platform_driver() This patch converts the drivers in drivers/video/omap/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Jonathan McDowell Cc: Cory Maccarrone Cc: Laurent Gonzalez Cc: Marek Vasut Signed-off-by: Axel Lin Signed-off-by: Tomi Valkeinen --- drivers/video/omap/lcd_palmte.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'drivers/video/omap/lcd_palmte.c') diff --git a/drivers/video/omap/lcd_palmte.c b/drivers/video/omap/lcd_palmte.c index d79f436b398c..88c31eb0cd6c 100644 --- a/drivers/video/omap/lcd_palmte.c +++ b/drivers/video/omap/lcd_palmte.c @@ -108,16 +108,4 @@ static struct platform_driver palmte_panel_driver = { }, }; -static int __init palmte_panel_drv_init(void) -{ - return platform_driver_register(&palmte_panel_driver); -} - -static void __exit palmte_panel_drv_cleanup(void) -{ - platform_driver_unregister(&palmte_panel_driver); -} - -module_init(palmte_panel_drv_init); -module_exit(palmte_panel_drv_cleanup); - +module_platform_driver(palmte_panel_driver); -- cgit v1.2.3