diff options
author | JJ Ding <dgdunix@gmail.com> | 2011-11-29 14:08:40 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-12-01 02:41:42 -0500 |
commit | 840a746be2beddd2ada0e5ba772147316d071f25 (patch) | |
tree | 3c078fea13106e83cbcb910aaf8e59046962e452 | |
parent | 5146c84f87c8aa3d115cea0d77ed3553df426752 (diff) |
Input: misc - use macro module_platform_driver()
Commit 940ab88962bc1aff3273a8356d64577a6e386736 introduced a new macro to
save some platform_driver boilerplate code. Use it.
Signed-off-by: JJ Ding <dgdunix@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r-- | drivers/input/misc/88pm860x_onkey.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/ab8500-ponkey.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/bfin_rotary.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/cobalt_btns.c | 14 | ||||
-rw-r--r-- | drivers/input/misc/dm355evm_keys.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/ixp4xx-beeper.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/max8925_onkey.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/pcap_keys.c | 14 | ||||
-rw-r--r-- | drivers/input/misc/pcf50633-input.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/pcspkr.c | 14 | ||||
-rw-r--r-- | drivers/input/misc/pm8xxx-vibrator.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/pmic8xxx-pwrkey.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/pwm-beeper.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/rb532_button.c | 14 | ||||
-rw-r--r-- | drivers/input/misc/rotary_encoder.c | 14 | ||||
-rw-r--r-- | drivers/input/misc/sgi_btns.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/twl4030-pwrbutton.c | 15 | ||||
-rw-r--r-- | drivers/input/misc/twl4030-vibra.c | 14 | ||||
-rw-r--r-- | drivers/input/misc/twl6040-vibra.c | 13 | ||||
-rw-r--r-- | drivers/input/misc/wm831x-on.c | 13 |
20 files changed, 21 insertions, 247 deletions
diff --git a/drivers/input/misc/88pm860x_onkey.c b/drivers/input/misc/88pm860x_onkey.c index 3dca3c14510e..f2e0cbc5ab64 100644 --- a/drivers/input/misc/88pm860x_onkey.c +++ b/drivers/input/misc/88pm860x_onkey.c | |||
@@ -137,18 +137,7 @@ static struct platform_driver pm860x_onkey_driver = { | |||
137 | .probe = pm860x_onkey_probe, | 137 | .probe = pm860x_onkey_probe, |
138 | .remove = __devexit_p(pm860x_onkey_remove), | 138 | .remove = __devexit_p(pm860x_onkey_remove), |
139 | }; | 139 | }; |
140 | 140 | module_platform_driver(pm860x_onkey_driver); | |
141 | static int __init pm860x_onkey_init(void) | ||
142 | { | ||
143 | return platform_driver_register(&pm860x_onkey_driver); | ||
144 | } | ||
145 | module_init(pm860x_onkey_init); | ||
146 | |||
147 | static void __exit pm860x_onkey_exit(void) | ||
148 | { | ||
149 | platform_driver_unregister(&pm860x_onkey_driver); | ||
150 | } | ||
151 | module_exit(pm860x_onkey_exit); | ||
152 | 141 | ||
153 | MODULE_DESCRIPTION("Marvell 88PM860x ONKEY driver"); | 142 | MODULE_DESCRIPTION("Marvell 88PM860x ONKEY driver"); |
154 | MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); | 143 | MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); |
diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index 3d3288a78fdc..79d901633635 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c | |||
@@ -139,18 +139,7 @@ static struct platform_driver ab8500_ponkey_driver = { | |||
139 | .probe = ab8500_ponkey_probe, | 139 | .probe = ab8500_ponkey_probe, |
140 | .remove = __devexit_p(ab8500_ponkey_remove), | 140 | .remove = __devexit_p(ab8500_ponkey_remove), |
141 | }; | 141 | }; |
142 | 142 | module_platform_driver(ab8500_ponkey_driver); | |
143 | static int __init ab8500_ponkey_init(void) | ||
144 | { | ||
145 | return platform_driver_register(&ab8500_ponkey_driver); | ||
146 | } | ||
147 | module_init(ab8500_ponkey_init); | ||
148 | |||
149 | static void __exit ab8500_ponkey_exit(void) | ||
150 | { | ||
151 | platform_driver_unregister(&ab8500_ponkey_driver); | ||
152 | } | ||
153 | module_exit(ab8500_ponkey_exit); | ||
154 | 143 | ||
155 | MODULE_LICENSE("GPL v2"); | 144 | MODULE_LICENSE("GPL v2"); |
156 | MODULE_AUTHOR("Sundar Iyer <sundar.iyer@stericsson.com>"); | 145 | MODULE_AUTHOR("Sundar Iyer <sundar.iyer@stericsson.com>"); |
diff --git a/drivers/input/misc/bfin_rotary.c b/drivers/input/misc/bfin_rotary.c index d00edc9f39d1..1c4146fccfdf 100644 --- a/drivers/input/misc/bfin_rotary.c +++ b/drivers/input/misc/bfin_rotary.c | |||
@@ -264,18 +264,7 @@ static struct platform_driver bfin_rotary_device_driver = { | |||
264 | #endif | 264 | #endif |
265 | }, | 265 | }, |
266 | }; | 266 | }; |
267 | 267 | module_platform_driver(bfin_rotary_device_driver); | |
268 | static int __init bfin_rotary_init(void) | ||
269 | { | ||
270 | return platform_driver_register(&bfin_rotary_device_driver); | ||
271 | } | ||
272 | module_init(bfin_rotary_init); | ||
273 | |||
274 | static void __exit bfin_rotary_exit(void) | ||
275 | { | ||
276 | platform_driver_unregister(&bfin_rotary_device_driver); | ||
277 | } | ||
278 | module_exit(bfin_rotary_exit); | ||
279 | 268 | ||
280 | MODULE_LICENSE("GPL"); | 269 | MODULE_LICENSE("GPL"); |
281 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 270 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
diff --git a/drivers/input/misc/cobalt_btns.c b/drivers/input/misc/cobalt_btns.c index fd8407a29631..53e43d295148 100644 --- a/drivers/input/misc/cobalt_btns.c +++ b/drivers/input/misc/cobalt_btns.c | |||
@@ -163,16 +163,4 @@ static struct platform_driver cobalt_buttons_driver = { | |||
163 | .owner = THIS_MODULE, | 163 | .owner = THIS_MODULE, |
164 | }, | 164 | }, |
165 | }; | 165 | }; |
166 | 166 | module_platform_driver(cobalt_buttons_driver); | |
167 | static int __init cobalt_buttons_init(void) | ||
168 | { | ||
169 | return platform_driver_register(&cobalt_buttons_driver); | ||
170 | } | ||
171 | |||
172 | static void __exit cobalt_buttons_exit(void) | ||
173 | { | ||
174 | platform_driver_unregister(&cobalt_buttons_driver); | ||
175 | } | ||
176 | |||
177 | module_init(cobalt_buttons_init); | ||
178 | module_exit(cobalt_buttons_exit); | ||
diff --git a/drivers/input/misc/dm355evm_keys.c b/drivers/input/misc/dm355evm_keys.c index 7283dd2a1ad3..35083c6836c3 100644 --- a/drivers/input/misc/dm355evm_keys.c +++ b/drivers/input/misc/dm355evm_keys.c | |||
@@ -267,17 +267,6 @@ static struct platform_driver dm355evm_keys_driver = { | |||
267 | .name = "dm355evm_keys", | 267 | .name = "dm355evm_keys", |
268 | }, | 268 | }, |
269 | }; | 269 | }; |
270 | 270 | module_platform_driver(dm355evm_keys_driver); | |
271 | static int __init dm355evm_keys_init(void) | ||
272 | { | ||
273 | return platform_driver_register(&dm355evm_keys_driver); | ||
274 | } | ||
275 | module_init(dm355evm_keys_init); | ||
276 | |||
277 | static void __exit dm355evm_keys_exit(void) | ||
278 | { | ||
279 | platform_driver_unregister(&dm355evm_keys_driver); | ||
280 | } | ||
281 | module_exit(dm355evm_keys_exit); | ||
282 | 271 | ||
283 | MODULE_LICENSE("GPL"); | 272 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/input/misc/ixp4xx-beeper.c b/drivers/input/misc/ixp4xx-beeper.c index 302ab46ce752..50e283068301 100644 --- a/drivers/input/misc/ixp4xx-beeper.c +++ b/drivers/input/misc/ixp4xx-beeper.c | |||
@@ -168,16 +168,5 @@ static struct platform_driver ixp4xx_spkr_platform_driver = { | |||
168 | .remove = __devexit_p(ixp4xx_spkr_remove), | 168 | .remove = __devexit_p(ixp4xx_spkr_remove), |
169 | .shutdown = ixp4xx_spkr_shutdown, | 169 | .shutdown = ixp4xx_spkr_shutdown, |
170 | }; | 170 | }; |
171 | module_platform_driver(ixp4xx_spkr_platform_driver); | ||
171 | 172 | ||
172 | static int __init ixp4xx_spkr_init(void) | ||
173 | { | ||
174 | return platform_driver_register(&ixp4xx_spkr_platform_driver); | ||
175 | } | ||
176 | |||
177 | static void __exit ixp4xx_spkr_exit(void) | ||
178 | { | ||
179 | platform_driver_unregister(&ixp4xx_spkr_platform_driver); | ||
180 | } | ||
181 | |||
182 | module_init(ixp4xx_spkr_init); | ||
183 | module_exit(ixp4xx_spkr_exit); | ||
diff --git a/drivers/input/misc/max8925_onkey.c b/drivers/input/misc/max8925_onkey.c index 7de0ded4ccc3..23cf08271049 100644 --- a/drivers/input/misc/max8925_onkey.c +++ b/drivers/input/misc/max8925_onkey.c | |||
@@ -166,18 +166,7 @@ static struct platform_driver max8925_onkey_driver = { | |||
166 | .probe = max8925_onkey_probe, | 166 | .probe = max8925_onkey_probe, |
167 | .remove = __devexit_p(max8925_onkey_remove), | 167 | .remove = __devexit_p(max8925_onkey_remove), |
168 | }; | 168 | }; |
169 | 169 | module_platform_driver(max8925_onkey_driver); | |
170 | static int __init max8925_onkey_init(void) | ||
171 | { | ||
172 | return platform_driver_register(&max8925_onkey_driver); | ||
173 | } | ||
174 | module_init(max8925_onkey_init); | ||
175 | |||
176 | static void __exit max8925_onkey_exit(void) | ||
177 | { | ||
178 | platform_driver_unregister(&max8925_onkey_driver); | ||
179 | } | ||
180 | module_exit(max8925_onkey_exit); | ||
181 | 170 | ||
182 | MODULE_DESCRIPTION("Maxim MAX8925 ONKEY driver"); | 171 | MODULE_DESCRIPTION("Maxim MAX8925 ONKEY driver"); |
183 | MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); | 172 | MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); |
diff --git a/drivers/input/misc/pcap_keys.c b/drivers/input/misc/pcap_keys.c index 99335c286250..e09b4fe81913 100644 --- a/drivers/input/misc/pcap_keys.c +++ b/drivers/input/misc/pcap_keys.c | |||
@@ -125,19 +125,7 @@ static struct platform_driver pcap_keys_device_driver = { | |||
125 | .owner = THIS_MODULE, | 125 | .owner = THIS_MODULE, |
126 | } | 126 | } |
127 | }; | 127 | }; |
128 | 128 | module_platform_driver(pcap_keys_device_driver); | |
129 | static int __init pcap_keys_init(void) | ||
130 | { | ||
131 | return platform_driver_register(&pcap_keys_device_driver); | ||
132 | }; | ||
133 | |||
134 | static void __exit pcap_keys_exit(void) | ||
135 | { | ||
136 | platform_driver_unregister(&pcap_keys_device_driver); | ||
137 | }; | ||
138 | |||
139 | module_init(pcap_keys_init); | ||
140 | module_exit(pcap_keys_exit); | ||
141 | 129 | ||
142 | MODULE_DESCRIPTION("Motorola PCAP2 input events driver"); | 130 | MODULE_DESCRIPTION("Motorola PCAP2 input events driver"); |
143 | MODULE_AUTHOR("Ilya Petrov <ilya.muromec@gmail.com>"); | 131 | MODULE_AUTHOR("Ilya Petrov <ilya.muromec@gmail.com>"); |
diff --git a/drivers/input/misc/pcf50633-input.c b/drivers/input/misc/pcf50633-input.c index 95562735728d..53891de80b0e 100644 --- a/drivers/input/misc/pcf50633-input.c +++ b/drivers/input/misc/pcf50633-input.c | |||
@@ -113,18 +113,7 @@ static struct platform_driver pcf50633_input_driver = { | |||
113 | .probe = pcf50633_input_probe, | 113 | .probe = pcf50633_input_probe, |
114 | .remove = __devexit_p(pcf50633_input_remove), | 114 | .remove = __devexit_p(pcf50633_input_remove), |
115 | }; | 115 | }; |
116 | 116 | module_platform_driver(pcf50633_input_driver); | |
117 | static int __init pcf50633_input_init(void) | ||
118 | { | ||
119 | return platform_driver_register(&pcf50633_input_driver); | ||
120 | } | ||
121 | module_init(pcf50633_input_init); | ||
122 | |||
123 | static void __exit pcf50633_input_exit(void) | ||
124 | { | ||
125 | platform_driver_unregister(&pcf50633_input_driver); | ||
126 | } | ||
127 | module_exit(pcf50633_input_exit); | ||
128 | 117 | ||
129 | MODULE_AUTHOR("Balaji Rao <balajirrao@openmoko.org>"); | 118 | MODULE_AUTHOR("Balaji Rao <balajirrao@openmoko.org>"); |
130 | MODULE_DESCRIPTION("PCF50633 input driver"); | 119 | MODULE_DESCRIPTION("PCF50633 input driver"); |
diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c index 34f4d2e0f50f..b2484aa07f32 100644 --- a/drivers/input/misc/pcspkr.c +++ b/drivers/input/misc/pcspkr.c | |||
@@ -134,17 +134,5 @@ static struct platform_driver pcspkr_platform_driver = { | |||
134 | .remove = __devexit_p(pcspkr_remove), | 134 | .remove = __devexit_p(pcspkr_remove), |
135 | .shutdown = pcspkr_shutdown, | 135 | .shutdown = pcspkr_shutdown, |
136 | }; | 136 | }; |
137 | module_platform_driver(pcspkr_platform_driver); | ||
137 | 138 | ||
138 | |||
139 | static int __init pcspkr_init(void) | ||
140 | { | ||
141 | return platform_driver_register(&pcspkr_platform_driver); | ||
142 | } | ||
143 | |||
144 | static void __exit pcspkr_exit(void) | ||
145 | { | ||
146 | platform_driver_unregister(&pcspkr_platform_driver); | ||
147 | } | ||
148 | |||
149 | module_init(pcspkr_init); | ||
150 | module_exit(pcspkr_exit); | ||
diff --git a/drivers/input/misc/pm8xxx-vibrator.c b/drivers/input/misc/pm8xxx-vibrator.c index 43192930824b..dfbfb463ea5d 100644 --- a/drivers/input/misc/pm8xxx-vibrator.c +++ b/drivers/input/misc/pm8xxx-vibrator.c | |||
@@ -277,18 +277,7 @@ static struct platform_driver pm8xxx_vib_driver = { | |||
277 | .pm = &pm8xxx_vib_pm_ops, | 277 | .pm = &pm8xxx_vib_pm_ops, |
278 | }, | 278 | }, |
279 | }; | 279 | }; |
280 | 280 | module_platform_driver(pm8xxx_vib_driver); | |
281 | static int __init pm8xxx_vib_init(void) | ||
282 | { | ||
283 | return platform_driver_register(&pm8xxx_vib_driver); | ||
284 | } | ||
285 | module_init(pm8xxx_vib_init); | ||
286 | |||
287 | static void __exit pm8xxx_vib_exit(void) | ||
288 | { | ||
289 | platform_driver_unregister(&pm8xxx_vib_driver); | ||
290 | } | ||
291 | module_exit(pm8xxx_vib_exit); | ||
292 | 281 | ||
293 | MODULE_ALIAS("platform:pm8xxx_vib"); | 282 | MODULE_ALIAS("platform:pm8xxx_vib"); |
294 | MODULE_DESCRIPTION("PMIC8xxx vibrator driver based on ff-memless framework"); | 283 | MODULE_DESCRIPTION("PMIC8xxx vibrator driver based on ff-memless framework"); |
diff --git a/drivers/input/misc/pmic8xxx-pwrkey.c b/drivers/input/misc/pmic8xxx-pwrkey.c index b3cfb9c71e66..0f83d0f1d015 100644 --- a/drivers/input/misc/pmic8xxx-pwrkey.c +++ b/drivers/input/misc/pmic8xxx-pwrkey.c | |||
@@ -213,18 +213,7 @@ static struct platform_driver pmic8xxx_pwrkey_driver = { | |||
213 | .pm = &pm8xxx_pwr_key_pm_ops, | 213 | .pm = &pm8xxx_pwr_key_pm_ops, |
214 | }, | 214 | }, |
215 | }; | 215 | }; |
216 | 216 | module_platform_driver(pmic8xxx_pwrkey_driver); | |
217 | static int __init pmic8xxx_pwrkey_init(void) | ||
218 | { | ||
219 | return platform_driver_register(&pmic8xxx_pwrkey_driver); | ||
220 | } | ||
221 | module_init(pmic8xxx_pwrkey_init); | ||
222 | |||
223 | static void __exit pmic8xxx_pwrkey_exit(void) | ||
224 | { | ||
225 | platform_driver_unregister(&pmic8xxx_pwrkey_driver); | ||
226 | } | ||
227 | module_exit(pmic8xxx_pwrkey_exit); | ||
228 | 217 | ||
229 | MODULE_ALIAS("platform:pmic8xxx_pwrkey"); | 218 | MODULE_ALIAS("platform:pmic8xxx_pwrkey"); |
230 | MODULE_DESCRIPTION("PMIC8XXX Power Key driver"); | 219 | MODULE_DESCRIPTION("PMIC8XXX Power Key driver"); |
diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c index 57c294f07198..fc84c8a51147 100644 --- a/drivers/input/misc/pwm-beeper.c +++ b/drivers/input/misc/pwm-beeper.c | |||
@@ -180,18 +180,7 @@ static struct platform_driver pwm_beeper_driver = { | |||
180 | .pm = PWM_BEEPER_PM_OPS, | 180 | .pm = PWM_BEEPER_PM_OPS, |
181 | }, | 181 | }, |
182 | }; | 182 | }; |
183 | 183 | module_platform_driver(pwm_beeper_driver); | |
184 | static int __init pwm_beeper_init(void) | ||
185 | { | ||
186 | return platform_driver_register(&pwm_beeper_driver); | ||
187 | } | ||
188 | module_init(pwm_beeper_init); | ||
189 | |||
190 | static void __exit pwm_beeper_exit(void) | ||
191 | { | ||
192 | platform_driver_unregister(&pwm_beeper_driver); | ||
193 | } | ||
194 | module_exit(pwm_beeper_exit); | ||
195 | 184 | ||
196 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | 185 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); |
197 | MODULE_DESCRIPTION("PWM beeper driver"); | 186 | MODULE_DESCRIPTION("PWM beeper driver"); |
diff --git a/drivers/input/misc/rb532_button.c b/drivers/input/misc/rb532_button.c index e2c7f622a0b5..aeb02bcf7233 100644 --- a/drivers/input/misc/rb532_button.c +++ b/drivers/input/misc/rb532_button.c | |||
@@ -100,19 +100,7 @@ static struct platform_driver rb532_button_driver = { | |||
100 | .owner = THIS_MODULE, | 100 | .owner = THIS_MODULE, |
101 | }, | 101 | }, |
102 | }; | 102 | }; |
103 | 103 | module_platform_driver(rb532_button_driver); | |
104 | static int __init rb532_button_init(void) | ||
105 | { | ||
106 | return platform_driver_register(&rb532_button_driver); | ||
107 | } | ||
108 | |||
109 | static void __exit rb532_button_exit(void) | ||
110 | { | ||
111 | platform_driver_unregister(&rb532_button_driver); | ||
112 | } | ||
113 | |||
114 | module_init(rb532_button_init); | ||
115 | module_exit(rb532_button_exit); | ||
116 | 104 | ||
117 | MODULE_AUTHOR("Phil Sutter <n0-1@freewrt.org>"); | 105 | MODULE_AUTHOR("Phil Sutter <n0-1@freewrt.org>"); |
118 | MODULE_LICENSE("GPL"); | 106 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index 2be21694fac1..f07f784198b9 100644 --- a/drivers/input/misc/rotary_encoder.c +++ b/drivers/input/misc/rotary_encoder.c | |||
@@ -284,19 +284,7 @@ static struct platform_driver rotary_encoder_driver = { | |||
284 | .owner = THIS_MODULE, | 284 | .owner = THIS_MODULE, |
285 | } | 285 | } |
286 | }; | 286 | }; |
287 | 287 | module_platform_driver(rotary_encoder_driver); | |
288 | static int __init rotary_encoder_init(void) | ||
289 | { | ||
290 | return platform_driver_register(&rotary_encoder_driver); | ||
291 | } | ||
292 | |||
293 | static void __exit rotary_encoder_exit(void) | ||
294 | { | ||
295 | platform_driver_unregister(&rotary_encoder_driver); | ||
296 | } | ||
297 | |||
298 | module_init(rotary_encoder_init); | ||
299 | module_exit(rotary_encoder_exit); | ||
300 | 288 | ||
301 | MODULE_ALIAS("platform:" DRV_NAME); | 289 | MODULE_ALIAS("platform:" DRV_NAME); |
302 | MODULE_DESCRIPTION("GPIO rotary encoder driver"); | 290 | MODULE_DESCRIPTION("GPIO rotary encoder driver"); |
diff --git a/drivers/input/misc/sgi_btns.c b/drivers/input/misc/sgi_btns.c index 1a80c0dab83b..5d9fd5571199 100644 --- a/drivers/input/misc/sgi_btns.c +++ b/drivers/input/misc/sgi_btns.c | |||
@@ -164,17 +164,6 @@ static struct platform_driver sgi_buttons_driver = { | |||
164 | .owner = THIS_MODULE, | 164 | .owner = THIS_MODULE, |
165 | }, | 165 | }, |
166 | }; | 166 | }; |
167 | 167 | module_platform_driver(sgi_buttons_driver); | |
168 | static int __init sgi_buttons_init(void) | ||
169 | { | ||
170 | return platform_driver_register(&sgi_buttons_driver); | ||
171 | } | ||
172 | |||
173 | static void __exit sgi_buttons_exit(void) | ||
174 | { | ||
175 | platform_driver_unregister(&sgi_buttons_driver); | ||
176 | } | ||
177 | 168 | ||
178 | MODULE_LICENSE("GPL"); | 169 | MODULE_LICENSE("GPL"); |
179 | module_init(sgi_buttons_init); | ||
180 | module_exit(sgi_buttons_exit); | ||
diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc/twl4030-pwrbutton.c index 38e4b507b94c..19a68828cd86 100644 --- a/drivers/input/misc/twl4030-pwrbutton.c +++ b/drivers/input/misc/twl4030-pwrbutton.c | |||
@@ -107,25 +107,14 @@ static int __exit twl4030_pwrbutton_remove(struct platform_device *pdev) | |||
107 | } | 107 | } |
108 | 108 | ||
109 | static struct platform_driver twl4030_pwrbutton_driver = { | 109 | static struct platform_driver twl4030_pwrbutton_driver = { |
110 | .probe = twl4030_pwrbutton_probe, | ||
110 | .remove = __exit_p(twl4030_pwrbutton_remove), | 111 | .remove = __exit_p(twl4030_pwrbutton_remove), |
111 | .driver = { | 112 | .driver = { |
112 | .name = "twl4030_pwrbutton", | 113 | .name = "twl4030_pwrbutton", |
113 | .owner = THIS_MODULE, | 114 | .owner = THIS_MODULE, |
114 | }, | 115 | }, |
115 | }; | 116 | }; |
116 | 117 | module_platform_driver(twl4030_pwrbutton_driver); | |
117 | static int __init twl4030_pwrbutton_init(void) | ||
118 | { | ||
119 | return platform_driver_probe(&twl4030_pwrbutton_driver, | ||
120 | twl4030_pwrbutton_probe); | ||
121 | } | ||
122 | module_init(twl4030_pwrbutton_init); | ||
123 | |||
124 | static void __exit twl4030_pwrbutton_exit(void) | ||
125 | { | ||
126 | platform_driver_unregister(&twl4030_pwrbutton_driver); | ||
127 | } | ||
128 | module_exit(twl4030_pwrbutton_exit); | ||
129 | 118 | ||
130 | MODULE_ALIAS("platform:twl4030_pwrbutton"); | 119 | MODULE_ALIAS("platform:twl4030_pwrbutton"); |
131 | MODULE_DESCRIPTION("Triton2 Power Button"); | 120 | MODULE_DESCRIPTION("Triton2 Power Button"); |
diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c index 3c1a432c14dc..37651373a95b 100644 --- a/drivers/input/misc/twl4030-vibra.c +++ b/drivers/input/misc/twl4030-vibra.c | |||
@@ -278,21 +278,9 @@ static struct platform_driver twl4030_vibra_driver = { | |||
278 | #endif | 278 | #endif |
279 | }, | 279 | }, |
280 | }; | 280 | }; |
281 | 281 | module_platform_driver(twl4030_vibra_driver); | |
282 | static int __init twl4030_vibra_init(void) | ||
283 | { | ||
284 | return platform_driver_register(&twl4030_vibra_driver); | ||
285 | } | ||
286 | module_init(twl4030_vibra_init); | ||
287 | |||
288 | static void __exit twl4030_vibra_exit(void) | ||
289 | { | ||
290 | platform_driver_unregister(&twl4030_vibra_driver); | ||
291 | } | ||
292 | module_exit(twl4030_vibra_exit); | ||
293 | 282 | ||
294 | MODULE_ALIAS("platform:twl4030-vibra"); | 283 | MODULE_ALIAS("platform:twl4030-vibra"); |
295 | |||
296 | MODULE_DESCRIPTION("TWL4030 Vibra driver"); | 284 | MODULE_DESCRIPTION("TWL4030 Vibra driver"); |
297 | MODULE_LICENSE("GPL"); | 285 | MODULE_LICENSE("GPL"); |
298 | MODULE_AUTHOR("Nokia Corporation"); | 286 | MODULE_AUTHOR("Nokia Corporation"); |
diff --git a/drivers/input/misc/twl6040-vibra.c b/drivers/input/misc/twl6040-vibra.c index ad153a417eed..45874fed523a 100644 --- a/drivers/input/misc/twl6040-vibra.c +++ b/drivers/input/misc/twl6040-vibra.c | |||
@@ -410,18 +410,7 @@ static struct platform_driver twl6040_vibra_driver = { | |||
410 | .pm = &twl6040_vibra_pm_ops, | 410 | .pm = &twl6040_vibra_pm_ops, |
411 | }, | 411 | }, |
412 | }; | 412 | }; |
413 | 413 | module_platform_driver(twl6040_vibra_driver); | |
414 | static int __init twl6040_vibra_init(void) | ||
415 | { | ||
416 | return platform_driver_register(&twl6040_vibra_driver); | ||
417 | } | ||
418 | module_init(twl6040_vibra_init); | ||
419 | |||
420 | static void __exit twl6040_vibra_exit(void) | ||
421 | { | ||
422 | platform_driver_unregister(&twl6040_vibra_driver); | ||
423 | } | ||
424 | module_exit(twl6040_vibra_exit); | ||
425 | 414 | ||
426 | MODULE_ALIAS("platform:twl6040-vibra"); | 415 | MODULE_ALIAS("platform:twl6040-vibra"); |
427 | MODULE_DESCRIPTION("TWL6040 Vibra driver"); | 416 | MODULE_DESCRIPTION("TWL6040 Vibra driver"); |
diff --git a/drivers/input/misc/wm831x-on.c b/drivers/input/misc/wm831x-on.c index c3d7ba5f5b47..47f18d6bce46 100644 --- a/drivers/input/misc/wm831x-on.c +++ b/drivers/input/misc/wm831x-on.c | |||
@@ -145,18 +145,7 @@ static struct platform_driver wm831x_on_driver = { | |||
145 | .owner = THIS_MODULE, | 145 | .owner = THIS_MODULE, |
146 | }, | 146 | }, |
147 | }; | 147 | }; |
148 | 148 | module_platform_driver(wm831x_on_driver); | |
149 | static int __init wm831x_on_init(void) | ||
150 | { | ||
151 | return platform_driver_register(&wm831x_on_driver); | ||
152 | } | ||
153 | module_init(wm831x_on_init); | ||
154 | |||
155 | static void __exit wm831x_on_exit(void) | ||
156 | { | ||
157 | platform_driver_unregister(&wm831x_on_driver); | ||
158 | } | ||
159 | module_exit(wm831x_on_exit); | ||
160 | 149 | ||
161 | MODULE_ALIAS("platform:wm831x-on"); | 150 | MODULE_ALIAS("platform:wm831x-on"); |
162 | MODULE_DESCRIPTION("WM831x ON pin"); | 151 | MODULE_DESCRIPTION("WM831x ON pin"); |