aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJJ Ding <dgdunix@gmail.com>2011-11-29 14:08:40 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-12-01 02:41:42 -0500
commit840a746be2beddd2ada0e5ba772147316d071f25 (patch)
tree3c078fea13106e83cbcb910aaf8e59046962e452
parent5146c84f87c8aa3d115cea0d77ed3553df426752 (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.c13
-rw-r--r--drivers/input/misc/ab8500-ponkey.c13
-rw-r--r--drivers/input/misc/bfin_rotary.c13
-rw-r--r--drivers/input/misc/cobalt_btns.c14
-rw-r--r--drivers/input/misc/dm355evm_keys.c13
-rw-r--r--drivers/input/misc/ixp4xx-beeper.c13
-rw-r--r--drivers/input/misc/max8925_onkey.c13
-rw-r--r--drivers/input/misc/pcap_keys.c14
-rw-r--r--drivers/input/misc/pcf50633-input.c13
-rw-r--r--drivers/input/misc/pcspkr.c14
-rw-r--r--drivers/input/misc/pm8xxx-vibrator.c13
-rw-r--r--drivers/input/misc/pmic8xxx-pwrkey.c13
-rw-r--r--drivers/input/misc/pwm-beeper.c13
-rw-r--r--drivers/input/misc/rb532_button.c14
-rw-r--r--drivers/input/misc/rotary_encoder.c14
-rw-r--r--drivers/input/misc/sgi_btns.c13
-rw-r--r--drivers/input/misc/twl4030-pwrbutton.c15
-rw-r--r--drivers/input/misc/twl4030-vibra.c14
-rw-r--r--drivers/input/misc/twl6040-vibra.c13
-rw-r--r--drivers/input/misc/wm831x-on.c13
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 140module_platform_driver(pm860x_onkey_driver);
141static int __init pm860x_onkey_init(void)
142{
143 return platform_driver_register(&pm860x_onkey_driver);
144}
145module_init(pm860x_onkey_init);
146
147static void __exit pm860x_onkey_exit(void)
148{
149 platform_driver_unregister(&pm860x_onkey_driver);
150}
151module_exit(pm860x_onkey_exit);
152 141
153MODULE_DESCRIPTION("Marvell 88PM860x ONKEY driver"); 142MODULE_DESCRIPTION("Marvell 88PM860x ONKEY driver");
154MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); 143MODULE_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 142module_platform_driver(ab8500_ponkey_driver);
143static int __init ab8500_ponkey_init(void)
144{
145 return platform_driver_register(&ab8500_ponkey_driver);
146}
147module_init(ab8500_ponkey_init);
148
149static void __exit ab8500_ponkey_exit(void)
150{
151 platform_driver_unregister(&ab8500_ponkey_driver);
152}
153module_exit(ab8500_ponkey_exit);
154 143
155MODULE_LICENSE("GPL v2"); 144MODULE_LICENSE("GPL v2");
156MODULE_AUTHOR("Sundar Iyer <sundar.iyer@stericsson.com>"); 145MODULE_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 267module_platform_driver(bfin_rotary_device_driver);
268static int __init bfin_rotary_init(void)
269{
270 return platform_driver_register(&bfin_rotary_device_driver);
271}
272module_init(bfin_rotary_init);
273
274static void __exit bfin_rotary_exit(void)
275{
276 platform_driver_unregister(&bfin_rotary_device_driver);
277}
278module_exit(bfin_rotary_exit);
279 268
280MODULE_LICENSE("GPL"); 269MODULE_LICENSE("GPL");
281MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); 270MODULE_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 166module_platform_driver(cobalt_buttons_driver);
167static int __init cobalt_buttons_init(void)
168{
169 return platform_driver_register(&cobalt_buttons_driver);
170}
171
172static void __exit cobalt_buttons_exit(void)
173{
174 platform_driver_unregister(&cobalt_buttons_driver);
175}
176
177module_init(cobalt_buttons_init);
178module_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 270module_platform_driver(dm355evm_keys_driver);
271static int __init dm355evm_keys_init(void)
272{
273 return platform_driver_register(&dm355evm_keys_driver);
274}
275module_init(dm355evm_keys_init);
276
277static void __exit dm355evm_keys_exit(void)
278{
279 platform_driver_unregister(&dm355evm_keys_driver);
280}
281module_exit(dm355evm_keys_exit);
282 271
283MODULE_LICENSE("GPL"); 272MODULE_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};
171module_platform_driver(ixp4xx_spkr_platform_driver);
171 172
172static int __init ixp4xx_spkr_init(void)
173{
174 return platform_driver_register(&ixp4xx_spkr_platform_driver);
175}
176
177static void __exit ixp4xx_spkr_exit(void)
178{
179 platform_driver_unregister(&ixp4xx_spkr_platform_driver);
180}
181
182module_init(ixp4xx_spkr_init);
183module_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 169module_platform_driver(max8925_onkey_driver);
170static int __init max8925_onkey_init(void)
171{
172 return platform_driver_register(&max8925_onkey_driver);
173}
174module_init(max8925_onkey_init);
175
176static void __exit max8925_onkey_exit(void)
177{
178 platform_driver_unregister(&max8925_onkey_driver);
179}
180module_exit(max8925_onkey_exit);
181 170
182MODULE_DESCRIPTION("Maxim MAX8925 ONKEY driver"); 171MODULE_DESCRIPTION("Maxim MAX8925 ONKEY driver");
183MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); 172MODULE_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 128module_platform_driver(pcap_keys_device_driver);
129static int __init pcap_keys_init(void)
130{
131 return platform_driver_register(&pcap_keys_device_driver);
132};
133
134static void __exit pcap_keys_exit(void)
135{
136 platform_driver_unregister(&pcap_keys_device_driver);
137};
138
139module_init(pcap_keys_init);
140module_exit(pcap_keys_exit);
141 129
142MODULE_DESCRIPTION("Motorola PCAP2 input events driver"); 130MODULE_DESCRIPTION("Motorola PCAP2 input events driver");
143MODULE_AUTHOR("Ilya Petrov <ilya.muromec@gmail.com>"); 131MODULE_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 116module_platform_driver(pcf50633_input_driver);
117static int __init pcf50633_input_init(void)
118{
119 return platform_driver_register(&pcf50633_input_driver);
120}
121module_init(pcf50633_input_init);
122
123static void __exit pcf50633_input_exit(void)
124{
125 platform_driver_unregister(&pcf50633_input_driver);
126}
127module_exit(pcf50633_input_exit);
128 117
129MODULE_AUTHOR("Balaji Rao <balajirrao@openmoko.org>"); 118MODULE_AUTHOR("Balaji Rao <balajirrao@openmoko.org>");
130MODULE_DESCRIPTION("PCF50633 input driver"); 119MODULE_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};
137module_platform_driver(pcspkr_platform_driver);
137 138
138
139static int __init pcspkr_init(void)
140{
141 return platform_driver_register(&pcspkr_platform_driver);
142}
143
144static void __exit pcspkr_exit(void)
145{
146 platform_driver_unregister(&pcspkr_platform_driver);
147}
148
149module_init(pcspkr_init);
150module_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 280module_platform_driver(pm8xxx_vib_driver);
281static int __init pm8xxx_vib_init(void)
282{
283 return platform_driver_register(&pm8xxx_vib_driver);
284}
285module_init(pm8xxx_vib_init);
286
287static void __exit pm8xxx_vib_exit(void)
288{
289 platform_driver_unregister(&pm8xxx_vib_driver);
290}
291module_exit(pm8xxx_vib_exit);
292 281
293MODULE_ALIAS("platform:pm8xxx_vib"); 282MODULE_ALIAS("platform:pm8xxx_vib");
294MODULE_DESCRIPTION("PMIC8xxx vibrator driver based on ff-memless framework"); 283MODULE_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 216module_platform_driver(pmic8xxx_pwrkey_driver);
217static int __init pmic8xxx_pwrkey_init(void)
218{
219 return platform_driver_register(&pmic8xxx_pwrkey_driver);
220}
221module_init(pmic8xxx_pwrkey_init);
222
223static void __exit pmic8xxx_pwrkey_exit(void)
224{
225 platform_driver_unregister(&pmic8xxx_pwrkey_driver);
226}
227module_exit(pmic8xxx_pwrkey_exit);
228 217
229MODULE_ALIAS("platform:pmic8xxx_pwrkey"); 218MODULE_ALIAS("platform:pmic8xxx_pwrkey");
230MODULE_DESCRIPTION("PMIC8XXX Power Key driver"); 219MODULE_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 183module_platform_driver(pwm_beeper_driver);
184static int __init pwm_beeper_init(void)
185{
186 return platform_driver_register(&pwm_beeper_driver);
187}
188module_init(pwm_beeper_init);
189
190static void __exit pwm_beeper_exit(void)
191{
192 platform_driver_unregister(&pwm_beeper_driver);
193}
194module_exit(pwm_beeper_exit);
195 184
196MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); 185MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
197MODULE_DESCRIPTION("PWM beeper driver"); 186MODULE_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 103module_platform_driver(rb532_button_driver);
104static int __init rb532_button_init(void)
105{
106 return platform_driver_register(&rb532_button_driver);
107}
108
109static void __exit rb532_button_exit(void)
110{
111 platform_driver_unregister(&rb532_button_driver);
112}
113
114module_init(rb532_button_init);
115module_exit(rb532_button_exit);
116 104
117MODULE_AUTHOR("Phil Sutter <n0-1@freewrt.org>"); 105MODULE_AUTHOR("Phil Sutter <n0-1@freewrt.org>");
118MODULE_LICENSE("GPL"); 106MODULE_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 287module_platform_driver(rotary_encoder_driver);
288static int __init rotary_encoder_init(void)
289{
290 return platform_driver_register(&rotary_encoder_driver);
291}
292
293static void __exit rotary_encoder_exit(void)
294{
295 platform_driver_unregister(&rotary_encoder_driver);
296}
297
298module_init(rotary_encoder_init);
299module_exit(rotary_encoder_exit);
300 288
301MODULE_ALIAS("platform:" DRV_NAME); 289MODULE_ALIAS("platform:" DRV_NAME);
302MODULE_DESCRIPTION("GPIO rotary encoder driver"); 290MODULE_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 167module_platform_driver(sgi_buttons_driver);
168static int __init sgi_buttons_init(void)
169{
170 return platform_driver_register(&sgi_buttons_driver);
171}
172
173static void __exit sgi_buttons_exit(void)
174{
175 platform_driver_unregister(&sgi_buttons_driver);
176}
177 168
178MODULE_LICENSE("GPL"); 169MODULE_LICENSE("GPL");
179module_init(sgi_buttons_init);
180module_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
109static struct platform_driver twl4030_pwrbutton_driver = { 109static 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 117module_platform_driver(twl4030_pwrbutton_driver);
117static int __init twl4030_pwrbutton_init(void)
118{
119 return platform_driver_probe(&twl4030_pwrbutton_driver,
120 twl4030_pwrbutton_probe);
121}
122module_init(twl4030_pwrbutton_init);
123
124static void __exit twl4030_pwrbutton_exit(void)
125{
126 platform_driver_unregister(&twl4030_pwrbutton_driver);
127}
128module_exit(twl4030_pwrbutton_exit);
129 118
130MODULE_ALIAS("platform:twl4030_pwrbutton"); 119MODULE_ALIAS("platform:twl4030_pwrbutton");
131MODULE_DESCRIPTION("Triton2 Power Button"); 120MODULE_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 281module_platform_driver(twl4030_vibra_driver);
282static int __init twl4030_vibra_init(void)
283{
284 return platform_driver_register(&twl4030_vibra_driver);
285}
286module_init(twl4030_vibra_init);
287
288static void __exit twl4030_vibra_exit(void)
289{
290 platform_driver_unregister(&twl4030_vibra_driver);
291}
292module_exit(twl4030_vibra_exit);
293 282
294MODULE_ALIAS("platform:twl4030-vibra"); 283MODULE_ALIAS("platform:twl4030-vibra");
295
296MODULE_DESCRIPTION("TWL4030 Vibra driver"); 284MODULE_DESCRIPTION("TWL4030 Vibra driver");
297MODULE_LICENSE("GPL"); 285MODULE_LICENSE("GPL");
298MODULE_AUTHOR("Nokia Corporation"); 286MODULE_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 413module_platform_driver(twl6040_vibra_driver);
414static int __init twl6040_vibra_init(void)
415{
416 return platform_driver_register(&twl6040_vibra_driver);
417}
418module_init(twl6040_vibra_init);
419
420static void __exit twl6040_vibra_exit(void)
421{
422 platform_driver_unregister(&twl6040_vibra_driver);
423}
424module_exit(twl6040_vibra_exit);
425 414
426MODULE_ALIAS("platform:twl6040-vibra"); 415MODULE_ALIAS("platform:twl6040-vibra");
427MODULE_DESCRIPTION("TWL6040 Vibra driver"); 416MODULE_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 148module_platform_driver(wm831x_on_driver);
149static int __init wm831x_on_init(void)
150{
151 return platform_driver_register(&wm831x_on_driver);
152}
153module_init(wm831x_on_init);
154
155static void __exit wm831x_on_exit(void)
156{
157 platform_driver_unregister(&wm831x_on_driver);
158}
159module_exit(wm831x_on_exit);
160 149
161MODULE_ALIAS("platform:wm831x-on"); 150MODULE_ALIAS("platform:wm831x-on");
162MODULE_DESCRIPTION("WM831x ON pin"); 151MODULE_DESCRIPTION("WM831x ON pin");