diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-08 20:59:56 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-01-02 01:51:25 -0500 |
commit | f806f9b6b8ec2c8b6a3297e684bcb80f54e3dc98 (patch) | |
tree | ab1e550e81bb006428d772656b9ef51d316ff8fb /drivers/video/omap | |
parent | f990544125b7599e537dbb17c511e68f2dbdb910 (diff) |
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')
-rw-r--r-- | drivers/video/omap/lcd_ams_delta.c | 13 | ||||
-rw-r--r-- | drivers/video/omap/lcd_h3.c | 14 | ||||
-rw-r--r-- | drivers/video/omap/lcd_htcherald.c | 14 | ||||
-rw-r--r-- | drivers/video/omap/lcd_inn1510.c | 14 | ||||
-rw-r--r-- | drivers/video/omap/lcd_inn1610.c | 14 | ||||
-rw-r--r-- | drivers/video/omap/lcd_osk.c | 14 | ||||
-rw-r--r-- | drivers/video/omap/lcd_palmte.c | 14 | ||||
-rw-r--r-- | drivers/video/omap/lcd_palmtt.c | 13 | ||||
-rw-r--r-- | drivers/video/omap/lcd_palmz71.c | 13 |
9 files changed, 9 insertions, 114 deletions
diff --git a/drivers/video/omap/lcd_ams_delta.c b/drivers/video/omap/lcd_ams_delta.c index eb50a955ea7f..0fdd6f6873bf 100644 --- a/drivers/video/omap/lcd_ams_delta.c +++ b/drivers/video/omap/lcd_ams_delta.c | |||
@@ -209,15 +209,4 @@ static struct platform_driver ams_delta_panel_driver = { | |||
209 | }, | 209 | }, |
210 | }; | 210 | }; |
211 | 211 | ||
212 | static int __init ams_delta_panel_drv_init(void) | 212 | module_platform_driver(ams_delta_panel_driver); |
213 | { | ||
214 | return platform_driver_register(&ams_delta_panel_driver); | ||
215 | } | ||
216 | |||
217 | static void __exit ams_delta_panel_drv_cleanup(void) | ||
218 | { | ||
219 | platform_driver_unregister(&ams_delta_panel_driver); | ||
220 | } | ||
221 | |||
222 | module_init(ams_delta_panel_drv_init); | ||
223 | module_exit(ams_delta_panel_drv_cleanup); | ||
diff --git a/drivers/video/omap/lcd_h3.c b/drivers/video/omap/lcd_h3.c index baec34e40f98..49bdeca81e50 100644 --- a/drivers/video/omap/lcd_h3.c +++ b/drivers/video/omap/lcd_h3.c | |||
@@ -124,16 +124,4 @@ static struct platform_driver h3_panel_driver = { | |||
124 | }, | 124 | }, |
125 | }; | 125 | }; |
126 | 126 | ||
127 | static int __init h3_panel_drv_init(void) | 127 | module_platform_driver(h3_panel_driver); |
128 | { | ||
129 | return platform_driver_register(&h3_panel_driver); | ||
130 | } | ||
131 | |||
132 | static void __exit h3_panel_drv_cleanup(void) | ||
133 | { | ||
134 | platform_driver_unregister(&h3_panel_driver); | ||
135 | } | ||
136 | |||
137 | module_init(h3_panel_drv_init); | ||
138 | module_exit(h3_panel_drv_cleanup); | ||
139 | |||
diff --git a/drivers/video/omap/lcd_htcherald.c b/drivers/video/omap/lcd_htcherald.c index b1a022f52a39..20f477851d54 100644 --- a/drivers/video/omap/lcd_htcherald.c +++ b/drivers/video/omap/lcd_htcherald.c | |||
@@ -115,16 +115,4 @@ static struct platform_driver htcherald_panel_driver = { | |||
115 | }, | 115 | }, |
116 | }; | 116 | }; |
117 | 117 | ||
118 | static int __init htcherald_panel_drv_init(void) | 118 | module_platform_driver(htcherald_panel_driver); |
119 | { | ||
120 | return platform_driver_register(&htcherald_panel_driver); | ||
121 | } | ||
122 | |||
123 | static void __exit htcherald_panel_drv_cleanup(void) | ||
124 | { | ||
125 | platform_driver_unregister(&htcherald_panel_driver); | ||
126 | } | ||
127 | |||
128 | module_init(htcherald_panel_drv_init); | ||
129 | module_exit(htcherald_panel_drv_cleanup); | ||
130 | |||
diff --git a/drivers/video/omap/lcd_inn1510.c b/drivers/video/omap/lcd_inn1510.c index d12994613bdf..b38b1dd15ce3 100644 --- a/drivers/video/omap/lcd_inn1510.c +++ b/drivers/video/omap/lcd_inn1510.c | |||
@@ -109,16 +109,4 @@ static struct platform_driver innovator1510_panel_driver = { | |||
109 | }, | 109 | }, |
110 | }; | 110 | }; |
111 | 111 | ||
112 | static int __init innovator1510_panel_drv_init(void) | 112 | module_platform_driver(innovator1510_panel_driver); |
113 | { | ||
114 | return platform_driver_register(&innovator1510_panel_driver); | ||
115 | } | ||
116 | |||
117 | static void __exit innovator1510_panel_drv_cleanup(void) | ||
118 | { | ||
119 | platform_driver_unregister(&innovator1510_panel_driver); | ||
120 | } | ||
121 | |||
122 | module_init(innovator1510_panel_drv_init); | ||
123 | module_exit(innovator1510_panel_drv_cleanup); | ||
124 | |||
diff --git a/drivers/video/omap/lcd_inn1610.c b/drivers/video/omap/lcd_inn1610.c index a95756bfda0e..7e8bd8e08a98 100644 --- a/drivers/video/omap/lcd_inn1610.c +++ b/drivers/video/omap/lcd_inn1610.c | |||
@@ -133,16 +133,4 @@ static struct platform_driver innovator1610_panel_driver = { | |||
133 | }, | 133 | }, |
134 | }; | 134 | }; |
135 | 135 | ||
136 | static int __init innovator1610_panel_drv_init(void) | 136 | module_platform_driver(innovator1610_panel_driver); |
137 | { | ||
138 | return platform_driver_register(&innovator1610_panel_driver); | ||
139 | } | ||
140 | |||
141 | static void __exit innovator1610_panel_drv_cleanup(void) | ||
142 | { | ||
143 | platform_driver_unregister(&innovator1610_panel_driver); | ||
144 | } | ||
145 | |||
146 | module_init(innovator1610_panel_drv_init); | ||
147 | module_exit(innovator1610_panel_drv_cleanup); | ||
148 | |||
diff --git a/drivers/video/omap/lcd_osk.c b/drivers/video/omap/lcd_osk.c index b985997c43a0..5914220dfa9c 100644 --- a/drivers/video/omap/lcd_osk.c +++ b/drivers/video/omap/lcd_osk.c | |||
@@ -127,16 +127,4 @@ static struct platform_driver osk_panel_driver = { | |||
127 | }, | 127 | }, |
128 | }; | 128 | }; |
129 | 129 | ||
130 | static int __init osk_panel_drv_init(void) | 130 | module_platform_driver(osk_panel_driver); |
131 | { | ||
132 | return platform_driver_register(&osk_panel_driver); | ||
133 | } | ||
134 | |||
135 | static void __exit osk_panel_drv_cleanup(void) | ||
136 | { | ||
137 | platform_driver_unregister(&osk_panel_driver); | ||
138 | } | ||
139 | |||
140 | module_init(osk_panel_drv_init); | ||
141 | module_exit(osk_panel_drv_cleanup); | ||
142 | |||
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 = { | |||
108 | }, | 108 | }, |
109 | }; | 109 | }; |
110 | 110 | ||
111 | static int __init palmte_panel_drv_init(void) | 111 | module_platform_driver(palmte_panel_driver); |
112 | { | ||
113 | return platform_driver_register(&palmte_panel_driver); | ||
114 | } | ||
115 | |||
116 | static void __exit palmte_panel_drv_cleanup(void) | ||
117 | { | ||
118 | platform_driver_unregister(&palmte_panel_driver); | ||
119 | } | ||
120 | |||
121 | module_init(palmte_panel_drv_init); | ||
122 | module_exit(palmte_panel_drv_cleanup); | ||
123 | |||
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 = { | |||
113 | }, | 113 | }, |
114 | }; | 114 | }; |
115 | 115 | ||
116 | static int __init palmtt_panel_drv_init(void) | 116 | module_platform_driver(palmtt_panel_driver); |
117 | { | ||
118 | return platform_driver_register(&palmtt_panel_driver); | ||
119 | } | ||
120 | |||
121 | static void __exit palmtt_panel_drv_cleanup(void) | ||
122 | { | ||
123 | platform_driver_unregister(&palmtt_panel_driver); | ||
124 | } | ||
125 | |||
126 | module_init(palmtt_panel_drv_init); | ||
127 | module_exit(palmtt_panel_drv_cleanup); | ||
diff --git a/drivers/video/omap/lcd_palmz71.c b/drivers/video/omap/lcd_palmz71.c index 1ab484759d81..3b7d8aa1cf34 100644 --- a/drivers/video/omap/lcd_palmz71.c +++ b/drivers/video/omap/lcd_palmz71.c | |||
@@ -109,15 +109,4 @@ static struct platform_driver palmz71_panel_driver = { | |||
109 | }, | 109 | }, |
110 | }; | 110 | }; |
111 | 111 | ||
112 | static int __init palmz71_panel_drv_init(void) | 112 | module_platform_driver(palmz71_panel_driver); |
113 | { | ||
114 | return platform_driver_register(&palmz71_panel_driver); | ||
115 | } | ||
116 | |||
117 | static void __exit palmz71_panel_drv_cleanup(void) | ||
118 | { | ||
119 | platform_driver_unregister(&palmz71_panel_driver); | ||
120 | } | ||
121 | |||
122 | module_init(palmz71_panel_drv_init); | ||
123 | module_exit(palmz71_panel_drv_cleanup); | ||