summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap/lcd_palmtt.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-12-09 09:59:56 +0800
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-01-02 08:51:25 +0200
commitf806f9b6b8ec2c8b6a3297e684bcb80f54e3dc98 (patch)
treeab1e550e81bb006428d772656b9ef51d316ff8fb /drivers/video/omap/lcd_palmtt.c
parentf990544125b7599e537dbb17c511e68f2dbdb910 (diff)
downloadtalos-obmc-linux-f806f9b6b8ec2c8b6a3297e684bcb80f54e3dc98.tar.gz
talos-obmc-linux-f806f9b6b8ec2c8b6a3297e684bcb80f54e3dc98.zip
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 <noodles@earth.li> Cc: Cory Maccarrone <darkstar6262@gmail.com> Cc: Laurent Gonzalez <palmte.linux@free.fr> Cc: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap/lcd_palmtt.c')
-rw-r--r--drivers/video/omap/lcd_palmtt.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/video/omap/lcd_palmtt.c b/drivers/video/omap/lcd_palmtt.c
index c2e96a720978..aaf3c8ba1243 100644
--- a/drivers/video/omap/lcd_palmtt.c
+++ b/drivers/video/omap/lcd_palmtt.c
@@ -113,15 +113,4 @@ static struct platform_driver palmtt_panel_driver = {
},
};
-static int __init palmtt_panel_drv_init(void)
-{
- return platform_driver_register(&palmtt_panel_driver);
-}
-
-static void __exit palmtt_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&palmtt_panel_driver);
-}
-
-module_init(palmtt_panel_drv_init);
-module_exit(palmtt_panel_drv_cleanup);
+module_platform_driver(palmtt_panel_driver);
OpenPOWER on IntegriCloud