diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-10-20 10:20:43 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-10-20 10:20:43 -0400 |
commit | 81902d5f658f5c8c0fbdff7c598fe24d4d521c05 (patch) | |
tree | 243127b57aa32d589c189a513a2b5859e046a770 /drivers/leds | |
parent | b79d4b7717b1355f3215278dc5942f42afb00a1b (diff) |
leds: drop owner assignment from platform_drivers
A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/leds')
28 files changed, 0 insertions, 29 deletions
diff --git a/drivers/leds/leds-88pm860x.c b/drivers/leds/leds-88pm860x.c index c2def5551ce1..1497a09166d6 100644 --- a/drivers/leds/leds-88pm860x.c +++ b/drivers/leds/leds-88pm860x.c | |||
@@ -237,7 +237,6 @@ static int pm860x_led_remove(struct platform_device *pdev) | |||
237 | static struct platform_driver pm860x_led_driver = { | 237 | static struct platform_driver pm860x_led_driver = { |
238 | .driver = { | 238 | .driver = { |
239 | .name = "88pm860x-led", | 239 | .name = "88pm860x-led", |
240 | .owner = THIS_MODULE, | ||
241 | }, | 240 | }, |
242 | .probe = pm860x_led_probe, | 241 | .probe = pm860x_led_probe, |
243 | .remove = pm860x_led_remove, | 242 | .remove = pm860x_led_remove, |
diff --git a/drivers/leds/leds-adp5520.c b/drivers/leds/leds-adp5520.c index 5036d7b4f82e..07e66cae32d3 100644 --- a/drivers/leds/leds-adp5520.c +++ b/drivers/leds/leds-adp5520.c | |||
@@ -201,7 +201,6 @@ static int adp5520_led_remove(struct platform_device *pdev) | |||
201 | static struct platform_driver adp5520_led_driver = { | 201 | static struct platform_driver adp5520_led_driver = { |
202 | .driver = { | 202 | .driver = { |
203 | .name = "adp5520-led", | 203 | .name = "adp5520-led", |
204 | .owner = THIS_MODULE, | ||
205 | }, | 204 | }, |
206 | .probe = adp5520_led_probe, | 205 | .probe = adp5520_led_probe, |
207 | .remove = adp5520_led_remove, | 206 | .remove = adp5520_led_remove, |
diff --git a/drivers/leds/leds-asic3.c b/drivers/leds/leds-asic3.c index 70c74a7f0dfe..1b71eac639f0 100644 --- a/drivers/leds/leds-asic3.c +++ b/drivers/leds/leds-asic3.c | |||
@@ -168,7 +168,6 @@ static struct platform_driver asic3_led_driver = { | |||
168 | .remove = asic3_led_remove, | 168 | .remove = asic3_led_remove, |
169 | .driver = { | 169 | .driver = { |
170 | .name = "leds-asic3", | 170 | .name = "leds-asic3", |
171 | .owner = THIS_MODULE, | ||
172 | .pm = &asic3_led_pm_ops, | 171 | .pm = &asic3_led_pm_ops, |
173 | }, | 172 | }, |
174 | }; | 173 | }; |
diff --git a/drivers/leds/leds-clevo-mail.c b/drivers/leds/leds-clevo-mail.c index f58a354428e3..0f9ed1ea0e89 100644 --- a/drivers/leds/leds-clevo-mail.c +++ b/drivers/leds/leds-clevo-mail.c | |||
@@ -168,7 +168,6 @@ static struct platform_driver clevo_mail_led_driver = { | |||
168 | .remove = clevo_mail_led_remove, | 168 | .remove = clevo_mail_led_remove, |
169 | .driver = { | 169 | .driver = { |
170 | .name = KBUILD_MODNAME, | 170 | .name = KBUILD_MODNAME, |
171 | .owner = THIS_MODULE, | ||
172 | }, | 171 | }, |
173 | }; | 172 | }; |
174 | 173 | ||
diff --git a/drivers/leds/leds-cobalt-qube.c b/drivers/leds/leds-cobalt-qube.c index 910339d86edf..d97522080491 100644 --- a/drivers/leds/leds-cobalt-qube.c +++ b/drivers/leds/leds-cobalt-qube.c | |||
@@ -76,7 +76,6 @@ static struct platform_driver cobalt_qube_led_driver = { | |||
76 | .remove = cobalt_qube_led_remove, | 76 | .remove = cobalt_qube_led_remove, |
77 | .driver = { | 77 | .driver = { |
78 | .name = "cobalt-qube-leds", | 78 | .name = "cobalt-qube-leds", |
79 | .owner = THIS_MODULE, | ||
80 | }, | 79 | }, |
81 | }; | 80 | }; |
82 | 81 | ||
diff --git a/drivers/leds/leds-cobalt-raq.c b/drivers/leds/leds-cobalt-raq.c index 001088b31373..06dbe18a2065 100644 --- a/drivers/leds/leds-cobalt-raq.c +++ b/drivers/leds/leds-cobalt-raq.c | |||
@@ -124,7 +124,6 @@ static struct platform_driver cobalt_raq_led_driver = { | |||
124 | .remove = cobalt_raq_led_remove, | 124 | .remove = cobalt_raq_led_remove, |
125 | .driver = { | 125 | .driver = { |
126 | .name = "cobalt-raq-leds", | 126 | .name = "cobalt-raq-leds", |
127 | .owner = THIS_MODULE, | ||
128 | }, | 127 | }, |
129 | }; | 128 | }; |
130 | 129 | ||
diff --git a/drivers/leds/leds-da903x.c b/drivers/leds/leds-da903x.c index 54b8b5216b8b..952ba96e5b38 100644 --- a/drivers/leds/leds-da903x.c +++ b/drivers/leds/leds-da903x.c | |||
@@ -144,7 +144,6 @@ static int da903x_led_remove(struct platform_device *pdev) | |||
144 | static struct platform_driver da903x_led_driver = { | 144 | static struct platform_driver da903x_led_driver = { |
145 | .driver = { | 145 | .driver = { |
146 | .name = "da903x-led", | 146 | .name = "da903x-led", |
147 | .owner = THIS_MODULE, | ||
148 | }, | 147 | }, |
149 | .probe = da903x_led_probe, | 148 | .probe = da903x_led_probe, |
150 | .remove = da903x_led_remove, | 149 | .remove = da903x_led_remove, |
diff --git a/drivers/leds/leds-da9052.c b/drivers/leds/leds-da9052.c index e4da1f460ac5..28291b6acc8e 100644 --- a/drivers/leds/leds-da9052.c +++ b/drivers/leds/leds-da9052.c | |||
@@ -199,7 +199,6 @@ static int da9052_led_remove(struct platform_device *pdev) | |||
199 | static struct platform_driver da9052_led_driver = { | 199 | static struct platform_driver da9052_led_driver = { |
200 | .driver = { | 200 | .driver = { |
201 | .name = "da9052-leds", | 201 | .name = "da9052-leds", |
202 | .owner = THIS_MODULE, | ||
203 | }, | 202 | }, |
204 | .probe = da9052_led_probe, | 203 | .probe = da9052_led_probe, |
205 | .remove = da9052_led_remove, | 204 | .remove = da9052_led_remove, |
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 57ff20fecf57..eda0c87dd9e4 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c | |||
@@ -289,7 +289,6 @@ static struct platform_driver gpio_led_driver = { | |||
289 | .remove = gpio_led_remove, | 289 | .remove = gpio_led_remove, |
290 | .driver = { | 290 | .driver = { |
291 | .name = "leds-gpio", | 291 | .name = "leds-gpio", |
292 | .owner = THIS_MODULE, | ||
293 | .of_match_table = of_match_ptr(of_gpio_leds_match), | 292 | .of_match_table = of_match_ptr(of_gpio_leds_match), |
294 | }, | 293 | }, |
295 | }; | 294 | }; |
diff --git a/drivers/leds/leds-hp6xx.c b/drivers/leds/leds-hp6xx.c index d61a98896c71..0b84c0113126 100644 --- a/drivers/leds/leds-hp6xx.c +++ b/drivers/leds/leds-hp6xx.c | |||
@@ -83,7 +83,6 @@ static struct platform_driver hp6xxled_driver = { | |||
83 | .remove = hp6xxled_remove, | 83 | .remove = hp6xxled_remove, |
84 | .driver = { | 84 | .driver = { |
85 | .name = "hp6xx-led", | 85 | .name = "hp6xx-led", |
86 | .owner = THIS_MODULE, | ||
87 | }, | 86 | }, |
88 | }; | 87 | }; |
89 | 88 | ||
diff --git a/drivers/leds/leds-lm3533.c b/drivers/leds/leds-lm3533.c index cbf61a40137d..6e2e02035dd7 100644 --- a/drivers/leds/leds-lm3533.c +++ b/drivers/leds/leds-lm3533.c | |||
@@ -766,7 +766,6 @@ static void lm3533_led_shutdown(struct platform_device *pdev) | |||
766 | static struct platform_driver lm3533_led_driver = { | 766 | static struct platform_driver lm3533_led_driver = { |
767 | .driver = { | 767 | .driver = { |
768 | .name = "lm3533-leds", | 768 | .name = "lm3533-leds", |
769 | .owner = THIS_MODULE, | ||
770 | }, | 769 | }, |
771 | .probe = lm3533_led_probe, | 770 | .probe = lm3533_led_probe, |
772 | .remove = lm3533_led_remove, | 771 | .remove = lm3533_led_remove, |
diff --git a/drivers/leds/leds-lp8788.c b/drivers/leds/leds-lp8788.c index 7c2cb384e7ae..3409f03c1fa8 100644 --- a/drivers/leds/leds-lp8788.c +++ b/drivers/leds/leds-lp8788.c | |||
@@ -183,7 +183,6 @@ static struct platform_driver lp8788_led_driver = { | |||
183 | .remove = lp8788_led_remove, | 183 | .remove = lp8788_led_remove, |
184 | .driver = { | 184 | .driver = { |
185 | .name = LP8788_DEV_KEYLED, | 185 | .name = LP8788_DEV_KEYLED, |
186 | .owner = THIS_MODULE, | ||
187 | }, | 186 | }, |
188 | }; | 187 | }; |
189 | module_platform_driver(lp8788_led_driver); | 188 | module_platform_driver(lp8788_led_driver); |
diff --git a/drivers/leds/leds-lt3593.c b/drivers/leds/leds-lt3593.c index 059f5b1f3553..9f41124765cc 100644 --- a/drivers/leds/leds-lt3593.c +++ b/drivers/leds/leds-lt3593.c | |||
@@ -184,7 +184,6 @@ static struct platform_driver lt3593_led_driver = { | |||
184 | .remove = lt3593_led_remove, | 184 | .remove = lt3593_led_remove, |
185 | .driver = { | 185 | .driver = { |
186 | .name = "leds-lt3593", | 186 | .name = "leds-lt3593", |
187 | .owner = THIS_MODULE, | ||
188 | }, | 187 | }, |
189 | }; | 188 | }; |
190 | 189 | ||
diff --git a/drivers/leds/leds-max8997.c b/drivers/leds/leds-max8997.c index 607bc2755aba..c592aa5662bb 100644 --- a/drivers/leds/leds-max8997.c +++ b/drivers/leds/leds-max8997.c | |||
@@ -303,7 +303,6 @@ static int max8997_led_remove(struct platform_device *pdev) | |||
303 | static struct platform_driver max8997_led_driver = { | 303 | static struct platform_driver max8997_led_driver = { |
304 | .driver = { | 304 | .driver = { |
305 | .name = "max8997-led", | 305 | .name = "max8997-led", |
306 | .owner = THIS_MODULE, | ||
307 | }, | 306 | }, |
308 | .probe = max8997_led_probe, | 307 | .probe = max8997_led_probe, |
309 | .remove = max8997_led_remove, | 308 | .remove = max8997_led_remove, |
diff --git a/drivers/leds/leds-mc13783.c b/drivers/leds/leds-mc13783.c index f1db88e25138..85c3714e1b5a 100644 --- a/drivers/leds/leds-mc13783.c +++ b/drivers/leds/leds-mc13783.c | |||
@@ -325,7 +325,6 @@ MODULE_DEVICE_TABLE(platform, mc13xxx_led_id_table); | |||
325 | static struct platform_driver mc13xxx_led_driver = { | 325 | static struct platform_driver mc13xxx_led_driver = { |
326 | .driver = { | 326 | .driver = { |
327 | .name = "mc13xxx-led", | 327 | .name = "mc13xxx-led", |
328 | .owner = THIS_MODULE, | ||
329 | }, | 328 | }, |
330 | .remove = mc13xxx_led_remove, | 329 | .remove = mc13xxx_led_remove, |
331 | .id_table = mc13xxx_led_id_table, | 330 | .id_table = mc13xxx_led_id_table, |
diff --git a/drivers/leds/leds-menf21bmc.c b/drivers/leds/leds-menf21bmc.c index 89dd57769e3b..4b9eea815b1a 100644 --- a/drivers/leds/leds-menf21bmc.c +++ b/drivers/leds/leds-menf21bmc.c | |||
@@ -119,7 +119,6 @@ static struct platform_driver menf21bmc_led = { | |||
119 | .remove = menf21bmc_led_remove, | 119 | .remove = menf21bmc_led_remove, |
120 | .driver = { | 120 | .driver = { |
121 | .name = "menf21bmc_led", | 121 | .name = "menf21bmc_led", |
122 | .owner = THIS_MODULE, | ||
123 | }, | 122 | }, |
124 | }; | 123 | }; |
125 | 124 | ||
diff --git a/drivers/leds/leds-net48xx.c b/drivers/leds/leds-net48xx.c index 27d06c528246..ec3a2e8adcae 100644 --- a/drivers/leds/leds-net48xx.c +++ b/drivers/leds/leds-net48xx.c | |||
@@ -53,7 +53,6 @@ static struct platform_driver net48xx_led_driver = { | |||
53 | .remove = net48xx_led_remove, | 53 | .remove = net48xx_led_remove, |
54 | .driver = { | 54 | .driver = { |
55 | .name = DRVNAME, | 55 | .name = DRVNAME, |
56 | .owner = THIS_MODULE, | ||
57 | }, | 56 | }, |
58 | }; | 57 | }; |
59 | 58 | ||
diff --git a/drivers/leds/leds-netxbig.c b/drivers/leds/leds-netxbig.c index 64fde485dcaa..26515c27ea8c 100644 --- a/drivers/leds/leds-netxbig.c +++ b/drivers/leds/leds-netxbig.c | |||
@@ -404,7 +404,6 @@ static struct platform_driver netxbig_led_driver = { | |||
404 | .remove = netxbig_led_remove, | 404 | .remove = netxbig_led_remove, |
405 | .driver = { | 405 | .driver = { |
406 | .name = "leds-netxbig", | 406 | .name = "leds-netxbig", |
407 | .owner = THIS_MODULE, | ||
408 | }, | 407 | }, |
409 | }; | 408 | }; |
410 | 409 | ||
diff --git a/drivers/leds/leds-ns2.c b/drivers/leds/leds-ns2.c index 231993d1fe21..1fd6adbb43b7 100644 --- a/drivers/leds/leds-ns2.c +++ b/drivers/leds/leds-ns2.c | |||
@@ -380,7 +380,6 @@ static struct platform_driver ns2_led_driver = { | |||
380 | .remove = ns2_led_remove, | 380 | .remove = ns2_led_remove, |
381 | .driver = { | 381 | .driver = { |
382 | .name = "leds-ns2", | 382 | .name = "leds-ns2", |
383 | .owner = THIS_MODULE, | ||
384 | .of_match_table = of_match_ptr(of_ns2_leds_match), | 383 | .of_match_table = of_match_ptr(of_ns2_leds_match), |
385 | }, | 384 | }, |
386 | }; | 385 | }; |
diff --git a/drivers/leds/leds-ot200.c b/drivers/leds/leds-ot200.c index c9d906098466..39870de20a26 100644 --- a/drivers/leds/leds-ot200.c +++ b/drivers/leds/leds-ot200.c | |||
@@ -158,7 +158,6 @@ static struct platform_driver ot200_led_driver = { | |||
158 | .remove = ot200_led_remove, | 158 | .remove = ot200_led_remove, |
159 | .driver = { | 159 | .driver = { |
160 | .name = "leds-ot200", | 160 | .name = "leds-ot200", |
161 | .owner = THIS_MODULE, | ||
162 | }, | 161 | }, |
163 | }; | 162 | }; |
164 | 163 | ||
diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c index d672bb4480f6..f668500a2157 100644 --- a/drivers/leds/leds-pwm.c +++ b/drivers/leds/leds-pwm.c | |||
@@ -232,7 +232,6 @@ static struct platform_driver led_pwm_driver = { | |||
232 | .remove = led_pwm_remove, | 232 | .remove = led_pwm_remove, |
233 | .driver = { | 233 | .driver = { |
234 | .name = "leds_pwm", | 234 | .name = "leds_pwm", |
235 | .owner = THIS_MODULE, | ||
236 | .of_match_table = of_pwm_leds_match, | 235 | .of_match_table = of_pwm_leds_match, |
237 | }, | 236 | }, |
238 | }; | 237 | }; |
diff --git a/drivers/leds/leds-rb532.c b/drivers/leds/leds-rb532.c index 2e746d257b02..fcd1215b64a2 100644 --- a/drivers/leds/leds-rb532.c +++ b/drivers/leds/leds-rb532.c | |||
@@ -53,7 +53,6 @@ static struct platform_driver rb532_led_driver = { | |||
53 | .remove = rb532_led_remove, | 53 | .remove = rb532_led_remove, |
54 | .driver = { | 54 | .driver = { |
55 | .name = "rb532-led", | 55 | .name = "rb532-led", |
56 | .owner = THIS_MODULE, | ||
57 | }, | 56 | }, |
58 | }; | 57 | }; |
59 | 58 | ||
diff --git a/drivers/leds/leds-regulator.c b/drivers/leds/leds-regulator.c index 358430db6e66..fa1126f12063 100644 --- a/drivers/leds/leds-regulator.c +++ b/drivers/leds/leds-regulator.c | |||
@@ -221,7 +221,6 @@ static int regulator_led_remove(struct platform_device *pdev) | |||
221 | static struct platform_driver regulator_led_driver = { | 221 | static struct platform_driver regulator_led_driver = { |
222 | .driver = { | 222 | .driver = { |
223 | .name = "leds-regulator", | 223 | .name = "leds-regulator", |
224 | .owner = THIS_MODULE, | ||
225 | }, | 224 | }, |
226 | .probe = regulator_led_probe, | 225 | .probe = regulator_led_probe, |
227 | .remove = regulator_led_remove, | 226 | .remove = regulator_led_remove, |
diff --git a/drivers/leds/leds-s3c24xx.c b/drivers/leds/leds-s3c24xx.c index 785eb53a87fc..83641a7b299a 100644 --- a/drivers/leds/leds-s3c24xx.c +++ b/drivers/leds/leds-s3c24xx.c | |||
@@ -116,7 +116,6 @@ static struct platform_driver s3c24xx_led_driver = { | |||
116 | .remove = s3c24xx_led_remove, | 116 | .remove = s3c24xx_led_remove, |
117 | .driver = { | 117 | .driver = { |
118 | .name = "s3c24xx_led", | 118 | .name = "s3c24xx_led", |
119 | .owner = THIS_MODULE, | ||
120 | }, | 119 | }, |
121 | }; | 120 | }; |
122 | 121 | ||
diff --git a/drivers/leds/leds-sunfire.c b/drivers/leds/leds-sunfire.c index 0b8cc4a021a6..c2553c54f2cf 100644 --- a/drivers/leds/leds-sunfire.c +++ b/drivers/leds/leds-sunfire.c | |||
@@ -223,7 +223,6 @@ static struct platform_driver sunfire_clockboard_led_driver = { | |||
223 | .remove = sunfire_led_generic_remove, | 223 | .remove = sunfire_led_generic_remove, |
224 | .driver = { | 224 | .driver = { |
225 | .name = "sunfire-clockboard-leds", | 225 | .name = "sunfire-clockboard-leds", |
226 | .owner = THIS_MODULE, | ||
227 | }, | 226 | }, |
228 | }; | 227 | }; |
229 | 228 | ||
@@ -232,7 +231,6 @@ static struct platform_driver sunfire_fhc_led_driver = { | |||
232 | .remove = sunfire_led_generic_remove, | 231 | .remove = sunfire_led_generic_remove, |
233 | .driver = { | 232 | .driver = { |
234 | .name = "sunfire-fhc-leds", | 233 | .name = "sunfire-fhc-leds", |
235 | .owner = THIS_MODULE, | ||
236 | }, | 234 | }, |
237 | }; | 235 | }; |
238 | 236 | ||
diff --git a/drivers/leds/leds-wm831x-status.c b/drivers/leds/leds-wm831x-status.c index 1b71e0701002..56027ef7c7e8 100644 --- a/drivers/leds/leds-wm831x-status.c +++ b/drivers/leds/leds-wm831x-status.c | |||
@@ -312,7 +312,6 @@ static int wm831x_status_remove(struct platform_device *pdev) | |||
312 | static struct platform_driver wm831x_status_driver = { | 312 | static struct platform_driver wm831x_status_driver = { |
313 | .driver = { | 313 | .driver = { |
314 | .name = "wm831x-status", | 314 | .name = "wm831x-status", |
315 | .owner = THIS_MODULE, | ||
316 | }, | 315 | }, |
317 | .probe = wm831x_status_probe, | 316 | .probe = wm831x_status_probe, |
318 | .remove = wm831x_status_remove, | 317 | .remove = wm831x_status_remove, |
diff --git a/drivers/leds/leds-wm8350.c b/drivers/leds/leds-wm8350.c index 4133ffe29015..0d121835673f 100644 --- a/drivers/leds/leds-wm8350.c +++ b/drivers/leds/leds-wm8350.c | |||
@@ -272,7 +272,6 @@ static int wm8350_led_remove(struct platform_device *pdev) | |||
272 | static struct platform_driver wm8350_led_driver = { | 272 | static struct platform_driver wm8350_led_driver = { |
273 | .driver = { | 273 | .driver = { |
274 | .name = "wm8350-led", | 274 | .name = "wm8350-led", |
275 | .owner = THIS_MODULE, | ||
276 | }, | 275 | }, |
277 | .probe = wm8350_led_probe, | 276 | .probe = wm8350_led_probe, |
278 | .remove = wm8350_led_remove, | 277 | .remove = wm8350_led_remove, |
diff --git a/drivers/leds/leds-wrap.c b/drivers/leds/leds-wrap.c index b358cc05eff5..1ba3defdd460 100644 --- a/drivers/leds/leds-wrap.c +++ b/drivers/leds/leds-wrap.c | |||
@@ -111,7 +111,6 @@ static struct platform_driver wrap_led_driver = { | |||
111 | .remove = wrap_led_remove, | 111 | .remove = wrap_led_remove, |
112 | .driver = { | 112 | .driver = { |
113 | .name = DRVNAME, | 113 | .name = DRVNAME, |
114 | .owner = THIS_MODULE, | ||
115 | }, | 114 | }, |
116 | }; | 115 | }; |
117 | 116 | ||