video: omap: convert drivers/video/omap/* to use module_platform_driver()
authorAxel Lin <axel.lin@gmail.com>
Fri, 9 Dec 2011 01:59:56 +0000 (09:59 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 2 Jan 2012 06:51:25 +0000 (08:51 +0200)
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>
drivers/video/omap/lcd_ams_delta.c
drivers/video/omap/lcd_h3.c
drivers/video/omap/lcd_htcherald.c
drivers/video/omap/lcd_inn1510.c
drivers/video/omap/lcd_inn1610.c
drivers/video/omap/lcd_osk.c
drivers/video/omap/lcd_palmte.c
drivers/video/omap/lcd_palmtt.c
drivers/video/omap/lcd_palmz71.c

index eb50a955ea7ff178b1f3fc84872ff64556331fd3..0fdd6f6873bfcc1f153cb50462e588ebc49d33c0 100644 (file)
@@ -209,15 +209,4 @@ static struct platform_driver ams_delta_panel_driver = {
        },
 };
 
-static int __init ams_delta_panel_drv_init(void)
-{
-       return platform_driver_register(&ams_delta_panel_driver);
-}
-
-static void __exit ams_delta_panel_drv_cleanup(void)
-{
-       platform_driver_unregister(&ams_delta_panel_driver);
-}
-
-module_init(ams_delta_panel_drv_init);
-module_exit(ams_delta_panel_drv_cleanup);
+module_platform_driver(ams_delta_panel_driver);
index baec34e40f988806a07577b775aed6a6f47e13d0..49bdeca81e507829c5698306d0db156f84dd0eee 100644 (file)
@@ -124,16 +124,4 @@ static struct platform_driver h3_panel_driver = {
        },
 };
 
-static int __init h3_panel_drv_init(void)
-{
-       return platform_driver_register(&h3_panel_driver);
-}
-
-static void __exit h3_panel_drv_cleanup(void)
-{
-       platform_driver_unregister(&h3_panel_driver);
-}
-
-module_init(h3_panel_drv_init);
-module_exit(h3_panel_drv_cleanup);
-
+module_platform_driver(h3_panel_driver);
index b1a022f52a39b02c800956fc7822f1beeee4ec6c..20f477851d5495a4b548426abcc39b805f071ea3 100644 (file)
@@ -115,16 +115,4 @@ static struct platform_driver htcherald_panel_driver = {
        },
 };
 
-static int __init htcherald_panel_drv_init(void)
-{
-       return platform_driver_register(&htcherald_panel_driver);
-}
-
-static void __exit htcherald_panel_drv_cleanup(void)
-{
-       platform_driver_unregister(&htcherald_panel_driver);
-}
-
-module_init(htcherald_panel_drv_init);
-module_exit(htcherald_panel_drv_cleanup);
-
+module_platform_driver(htcherald_panel_driver);
index d12994613bdf805e97799234e1fba2103d2e5d32..b38b1dd15ce35f059c446a36313424d2ab11274c 100644 (file)
@@ -109,16 +109,4 @@ static struct platform_driver innovator1510_panel_driver = {
        },
 };
 
-static int __init innovator1510_panel_drv_init(void)
-{
-       return platform_driver_register(&innovator1510_panel_driver);
-}
-
-static void __exit innovator1510_panel_drv_cleanup(void)
-{
-       platform_driver_unregister(&innovator1510_panel_driver);
-}
-
-module_init(innovator1510_panel_drv_init);
-module_exit(innovator1510_panel_drv_cleanup);
-
+module_platform_driver(innovator1510_panel_driver);
index a95756bfda0edf1324bdf948ae6b79f4de0019f0..7e8bd8e08a98c37313a377357aec0ff3e64192e7 100644 (file)
@@ -133,16 +133,4 @@ static struct platform_driver innovator1610_panel_driver = {
        },
 };
 
-static int __init innovator1610_panel_drv_init(void)
-{
-       return platform_driver_register(&innovator1610_panel_driver);
-}
-
-static void __exit innovator1610_panel_drv_cleanup(void)
-{
-       platform_driver_unregister(&innovator1610_panel_driver);
-}
-
-module_init(innovator1610_panel_drv_init);
-module_exit(innovator1610_panel_drv_cleanup);
-
+module_platform_driver(innovator1610_panel_driver);
index b985997c43a0e80d61d45b5a64b194269971b565..5914220dfa9cbf46e0dfe81dc9ed34f8817a7af2 100644 (file)
@@ -127,16 +127,4 @@ static struct platform_driver osk_panel_driver = {
        },
 };
 
-static int __init osk_panel_drv_init(void)
-{
-       return platform_driver_register(&osk_panel_driver);
-}
-
-static void __exit osk_panel_drv_cleanup(void)
-{
-       platform_driver_unregister(&osk_panel_driver);
-}
-
-module_init(osk_panel_drv_init);
-module_exit(osk_panel_drv_cleanup);
-
+module_platform_driver(osk_panel_driver);
index d79f436b398c91af6765283085d97d3b5d924457..88c31eb0cd6c7768ad84d72f504fc1fb0f63a855 100644 (file)
@@ -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);
index c2e96a720978842977a45b8564f1ff7fe04b716c..aaf3c8ba12438d5323ef6d3e6c7002af3dd6b863 100644 (file)
@@ -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);
index 1ab484759d810cfe737afb124d008824bcdcbadd..3b7d8aa1cf34606e15ef0e59b9374c7ea6267559 100644 (file)
@@ -109,15 +109,4 @@ static struct platform_driver palmz71_panel_driver = {
        },
 };
 
-static int __init palmz71_panel_drv_init(void)
-{
-       return platform_driver_register(&palmz71_panel_driver);
-}
-
-static void __exit palmz71_panel_drv_cleanup(void)
-{
-       platform_driver_unregister(&palmz71_panel_driver);
-}
-
-module_init(palmz71_panel_drv_init);
-module_exit(palmz71_panel_drv_cleanup);
+module_platform_driver(palmz71_panel_driver);