aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2014-10-20 10:20:53 -0400
committerWolfram Sang <wsa@the-dreams.de>2014-10-20 10:20:53 -0400
commit78a835416ad6d5b0d67f264d592906fade309ea2 (patch)
tree36bfae71e68a26fb8e96c8605786cc5ec52bea2e /drivers
parent1a22cd17483e4e574b7c1d624be48b47404aea2d (diff)
mfd: 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')
-rw-r--r--drivers/mfd/ab3100-otp.c1
-rw-r--r--drivers/mfd/ab8500-core.c1
-rw-r--r--drivers/mfd/ab8500-debugfs.c1
-rw-r--r--drivers/mfd/ab8500-gpadc.c1
-rw-r--r--drivers/mfd/ab8500-sysctrl.c1
-rw-r--r--drivers/mfd/davinci_voicecodec.c1
-rw-r--r--drivers/mfd/db8500-prcmu.c1
-rw-r--r--drivers/mfd/intel_msic.c1
-rw-r--r--drivers/mfd/jz4740-adc.c1
-rw-r--r--drivers/mfd/kempld-core.c1
-rw-r--r--drivers/mfd/mcp-sa11x0.c1
-rw-r--r--drivers/mfd/omap-usb-host.c1
-rw-r--r--drivers/mfd/omap-usb-tll.c1
-rw-r--r--drivers/mfd/pm8921-core.c1
-rw-r--r--drivers/mfd/sm501.c1
-rw-r--r--drivers/mfd/ssbi.c1
-rw-r--r--drivers/mfd/sta2x11-mfd.c4
-rw-r--r--drivers/mfd/sun6i-prcm.c1
-rw-r--r--drivers/mfd/syscon.c1
-rw-r--r--drivers/mfd/t7l66xb.c1
-rw-r--r--drivers/mfd/tc6393xb.c1
-rw-r--r--drivers/mfd/ti_am335x_tscadc.c1
-rw-r--r--drivers/mfd/tps65911-comparator.c1
-rw-r--r--drivers/mfd/twl4030-audio.c1
-rw-r--r--drivers/mfd/twl4030-power.c1
25 files changed, 0 insertions, 28 deletions
diff --git a/drivers/mfd/ab3100-otp.c b/drivers/mfd/ab3100-otp.c
index c9af16cc7310..f391c5fee1b0 100644
--- a/drivers/mfd/ab3100-otp.c
+++ b/drivers/mfd/ab3100-otp.c
@@ -239,7 +239,6 @@ static int __exit ab3100_otp_remove(struct platform_device *pdev)
239static struct platform_driver ab3100_otp_driver = { 239static struct platform_driver ab3100_otp_driver = {
240 .driver = { 240 .driver = {
241 .name = "ab3100-otp", 241 .name = "ab3100-otp",
242 .owner = THIS_MODULE,
243 }, 242 },
244 .remove = __exit_p(ab3100_otp_remove), 243 .remove = __exit_p(ab3100_otp_remove),
245}; 244};
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
index bde2fc072410..c80a2925f8e5 100644
--- a/drivers/mfd/ab8500-core.c
+++ b/drivers/mfd/ab8500-core.c
@@ -1848,7 +1848,6 @@ static const struct platform_device_id ab8500_id[] = {
1848static struct platform_driver ab8500_core_driver = { 1848static struct platform_driver ab8500_core_driver = {
1849 .driver = { 1849 .driver = {
1850 .name = "ab8500-core", 1850 .name = "ab8500-core",
1851 .owner = THIS_MODULE,
1852 }, 1851 },
1853 .probe = ab8500_probe, 1852 .probe = ab8500_probe,
1854 .remove = ab8500_remove, 1853 .remove = ab8500_remove,
diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c
index b2c7e3b1edfa..9a8e185f11df 100644
--- a/drivers/mfd/ab8500-debugfs.c
+++ b/drivers/mfd/ab8500-debugfs.c
@@ -3263,7 +3263,6 @@ static int ab8500_debug_remove(struct platform_device *plf)
3263static struct platform_driver ab8500_debug_driver = { 3263static struct platform_driver ab8500_debug_driver = {
3264 .driver = { 3264 .driver = {
3265 .name = "ab8500-debug", 3265 .name = "ab8500-debug",
3266 .owner = THIS_MODULE,
3267 }, 3266 },
3268 .probe = ab8500_debug_probe, 3267 .probe = ab8500_debug_probe,
3269 .remove = ab8500_debug_remove 3268 .remove = ab8500_debug_remove
diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c
index 36000f920981..ee9198e12739 100644
--- a/drivers/mfd/ab8500-gpadc.c
+++ b/drivers/mfd/ab8500-gpadc.c
@@ -1044,7 +1044,6 @@ static struct platform_driver ab8500_gpadc_driver = {
1044 .remove = ab8500_gpadc_remove, 1044 .remove = ab8500_gpadc_remove,
1045 .driver = { 1045 .driver = {
1046 .name = "ab8500-gpadc", 1046 .name = "ab8500-gpadc",
1047 .owner = THIS_MODULE,
1048 .pm = &ab8500_gpadc_pm_ops, 1047 .pm = &ab8500_gpadc_pm_ops,
1049 }, 1048 },
1050}; 1049};
diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c
index 8e0dae59844d..fe7e3b133834 100644
--- a/drivers/mfd/ab8500-sysctrl.c
+++ b/drivers/mfd/ab8500-sysctrl.c
@@ -237,7 +237,6 @@ static int ab8500_sysctrl_remove(struct platform_device *pdev)
237static struct platform_driver ab8500_sysctrl_driver = { 237static struct platform_driver ab8500_sysctrl_driver = {
238 .driver = { 238 .driver = {
239 .name = "ab8500-sysctrl", 239 .name = "ab8500-sysctrl",
240 .owner = THIS_MODULE,
241 }, 240 },
242 .probe = ab8500_sysctrl_probe, 241 .probe = ab8500_sysctrl_probe,
243 .remove = ab8500_sysctrl_remove, 242 .remove = ab8500_sysctrl_remove,
diff --git a/drivers/mfd/davinci_voicecodec.c b/drivers/mfd/davinci_voicecodec.c
index 013ba8159dcd..c835e85539b2 100644
--- a/drivers/mfd/davinci_voicecodec.c
+++ b/drivers/mfd/davinci_voicecodec.c
@@ -143,7 +143,6 @@ static int davinci_vc_remove(struct platform_device *pdev)
143static struct platform_driver davinci_vc_driver = { 143static struct platform_driver davinci_vc_driver = {
144 .driver = { 144 .driver = {
145 .name = "davinci_voicecodec", 145 .name = "davinci_voicecodec",
146 .owner = THIS_MODULE,
147 }, 146 },
148 .remove = davinci_vc_remove, 147 .remove = davinci_vc_remove,
149}; 148};
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c
index 193cf168ba84..7700e17b3718 100644
--- a/drivers/mfd/db8500-prcmu.c
+++ b/drivers/mfd/db8500-prcmu.c
@@ -3230,7 +3230,6 @@ static const struct of_device_id db8500_prcmu_match[] = {
3230static struct platform_driver db8500_prcmu_driver = { 3230static struct platform_driver db8500_prcmu_driver = {
3231 .driver = { 3231 .driver = {
3232 .name = "db8500-prcmu", 3232 .name = "db8500-prcmu",
3233 .owner = THIS_MODULE,
3234 .of_match_table = db8500_prcmu_match, 3233 .of_match_table = db8500_prcmu_match,
3235 }, 3234 },
3236 .probe = db8500_prcmu_probe, 3235 .probe = db8500_prcmu_probe,
diff --git a/drivers/mfd/intel_msic.c b/drivers/mfd/intel_msic.c
index 443e7cddff28..25d486c543cb 100644
--- a/drivers/mfd/intel_msic.c
+++ b/drivers/mfd/intel_msic.c
@@ -447,7 +447,6 @@ static struct platform_driver intel_msic_driver = {
447 .remove = intel_msic_remove, 447 .remove = intel_msic_remove,
448 .driver = { 448 .driver = {
449 .name = "intel_msic", 449 .name = "intel_msic",
450 .owner = THIS_MODULE,
451 }, 450 },
452}; 451};
453 452
diff --git a/drivers/mfd/jz4740-adc.c b/drivers/mfd/jz4740-adc.c
index 7a51c0d0d4f1..b31c54e4ecb2 100644
--- a/drivers/mfd/jz4740-adc.c
+++ b/drivers/mfd/jz4740-adc.c
@@ -324,7 +324,6 @@ static struct platform_driver jz4740_adc_driver = {
324 .remove = jz4740_adc_remove, 324 .remove = jz4740_adc_remove,
325 .driver = { 325 .driver = {
326 .name = "jz4740-adc", 326 .name = "jz4740-adc",
327 .owner = THIS_MODULE,
328 }, 327 },
329}; 328};
330 329
diff --git a/drivers/mfd/kempld-core.c b/drivers/mfd/kempld-core.c
index bd2696136eee..f38ec424872e 100644
--- a/drivers/mfd/kempld-core.c
+++ b/drivers/mfd/kempld-core.c
@@ -494,7 +494,6 @@ static int kempld_remove(struct platform_device *pdev)
494static struct platform_driver kempld_driver = { 494static struct platform_driver kempld_driver = {
495 .driver = { 495 .driver = {
496 .name = "kempld", 496 .name = "kempld",
497 .owner = THIS_MODULE,
498 }, 497 },
499 .probe = kempld_probe, 498 .probe = kempld_probe,
500 .remove = kempld_remove, 499 .remove = kempld_remove,
diff --git a/drivers/mfd/mcp-sa11x0.c b/drivers/mfd/mcp-sa11x0.c
index 29d76986b40b..1fc458128405 100644
--- a/drivers/mfd/mcp-sa11x0.c
+++ b/drivers/mfd/mcp-sa11x0.c
@@ -299,7 +299,6 @@ static struct platform_driver mcp_sa11x0_driver = {
299 .remove = mcp_sa11x0_remove, 299 .remove = mcp_sa11x0_remove,
300 .driver = { 300 .driver = {
301 .name = DRIVER_NAME, 301 .name = DRIVER_NAME,
302 .owner = THIS_MODULE,
303 .pm = &mcp_sa11x0_pm_ops, 302 .pm = &mcp_sa11x0_pm_ops,
304 }, 303 },
305}; 304};
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index 83dab2f0a50e..04cd54dd507c 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -882,7 +882,6 @@ MODULE_DEVICE_TABLE(of, usbhs_omap_dt_ids);
882static struct platform_driver usbhs_omap_driver = { 882static struct platform_driver usbhs_omap_driver = {
883 .driver = { 883 .driver = {
884 .name = (char *)usbhs_driver_name, 884 .name = (char *)usbhs_driver_name,
885 .owner = THIS_MODULE,
886 .pm = &usbhsomap_dev_pm_ops, 885 .pm = &usbhsomap_dev_pm_ops,
887 .of_match_table = usbhs_omap_dt_ids, 886 .of_match_table = usbhs_omap_dt_ids,
888 }, 887 },
diff --git a/drivers/mfd/omap-usb-tll.c b/drivers/mfd/omap-usb-tll.c
index 532eacab6b46..b7b3e8ee64f2 100644
--- a/drivers/mfd/omap-usb-tll.c
+++ b/drivers/mfd/omap-usb-tll.c
@@ -319,7 +319,6 @@ MODULE_DEVICE_TABLE(of, usbtll_omap_dt_ids);
319static struct platform_driver usbtll_omap_driver = { 319static struct platform_driver usbtll_omap_driver = {
320 .driver = { 320 .driver = {
321 .name = (char *)usbtll_driver_name, 321 .name = (char *)usbtll_driver_name,
322 .owner = THIS_MODULE,
323 .of_match_table = usbtll_omap_dt_ids, 322 .of_match_table = usbtll_omap_dt_ids,
324 }, 323 },
325 .probe = usbtll_omap_probe, 324 .probe = usbtll_omap_probe,
diff --git a/drivers/mfd/pm8921-core.c b/drivers/mfd/pm8921-core.c
index 39904f77c049..5a92646a2ccb 100644
--- a/drivers/mfd/pm8921-core.c
+++ b/drivers/mfd/pm8921-core.c
@@ -374,7 +374,6 @@ static struct platform_driver pm8921_driver = {
374 .remove = pm8921_remove, 374 .remove = pm8921_remove,
375 .driver = { 375 .driver = {
376 .name = "pm8921-core", 376 .name = "pm8921-core",
377 .owner = THIS_MODULE,
378 .of_match_table = pm8921_id_table, 377 .of_match_table = pm8921_id_table,
379 }, 378 },
380}; 379};
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
index 6ce6e6200359..91077efc8050 100644
--- a/drivers/mfd/sm501.c
+++ b/drivers/mfd/sm501.c
@@ -1723,7 +1723,6 @@ static const struct of_device_id of_sm501_match_tbl[] = {
1723static struct platform_driver sm501_plat_driver = { 1723static struct platform_driver sm501_plat_driver = {
1724 .driver = { 1724 .driver = {
1725 .name = "sm501", 1725 .name = "sm501",
1726 .owner = THIS_MODULE,
1727 .of_match_table = of_sm501_match_tbl, 1726 .of_match_table = of_sm501_match_tbl,
1728 }, 1727 },
1729 .probe = sm501_plat_probe, 1728 .probe = sm501_plat_probe,
diff --git a/drivers/mfd/ssbi.c b/drivers/mfd/ssbi.c
index b78942ed4c67..27986f641f7d 100644
--- a/drivers/mfd/ssbi.c
+++ b/drivers/mfd/ssbi.c
@@ -327,7 +327,6 @@ static struct platform_driver ssbi_driver = {
327 .probe = ssbi_probe, 327 .probe = ssbi_probe,
328 .driver = { 328 .driver = {
329 .name = "ssbi", 329 .name = "ssbi",
330 .owner = THIS_MODULE,
331 .of_match_table = ssbi_match_table, 330 .of_match_table = ssbi_match_table,
332 }, 331 },
333}; 332};
diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c
index 5b72db07d9de..b3e5c6f45105 100644
--- a/drivers/mfd/sta2x11-mfd.c
+++ b/drivers/mfd/sta2x11-mfd.c
@@ -368,7 +368,6 @@ static int sta2x11_scr_probe(struct platform_device *dev)
368static struct platform_driver sta2x11_sctl_platform_driver = { 368static struct platform_driver sta2x11_sctl_platform_driver = {
369 .driver = { 369 .driver = {
370 .name = STA2X11_MFD_SCTL_NAME, 370 .name = STA2X11_MFD_SCTL_NAME,
371 .owner = THIS_MODULE,
372 }, 371 },
373 .probe = sta2x11_sctl_probe, 372 .probe = sta2x11_sctl_probe,
374}; 373};
@@ -382,7 +381,6 @@ static int __init sta2x11_sctl_init(void)
382static struct platform_driver sta2x11_platform_driver = { 381static struct platform_driver sta2x11_platform_driver = {
383 .driver = { 382 .driver = {
384 .name = STA2X11_MFD_APBREG_NAME, 383 .name = STA2X11_MFD_APBREG_NAME,
385 .owner = THIS_MODULE,
386 }, 384 },
387 .probe = sta2x11_apbreg_probe, 385 .probe = sta2x11_apbreg_probe,
388}; 386};
@@ -396,7 +394,6 @@ static int __init sta2x11_apbreg_init(void)
396static struct platform_driver sta2x11_apb_soc_regs_platform_driver = { 394static struct platform_driver sta2x11_apb_soc_regs_platform_driver = {
397 .driver = { 395 .driver = {
398 .name = STA2X11_MFD_APB_SOC_REGS_NAME, 396 .name = STA2X11_MFD_APB_SOC_REGS_NAME,
399 .owner = THIS_MODULE,
400 }, 397 },
401 .probe = sta2x11_apb_soc_regs_probe, 398 .probe = sta2x11_apb_soc_regs_probe,
402}; 399};
@@ -410,7 +407,6 @@ static int __init sta2x11_apb_soc_regs_init(void)
410static struct platform_driver sta2x11_scr_platform_driver = { 407static struct platform_driver sta2x11_scr_platform_driver = {
411 .driver = { 408 .driver = {
412 .name = STA2X11_MFD_SCR_NAME, 409 .name = STA2X11_MFD_SCR_NAME,
413 .owner = THIS_MODULE,
414 }, 410 },
415 .probe = sta2x11_scr_probe, 411 .probe = sta2x11_scr_probe,
416}; 412};
diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c
index 283ab8d197e4..2f2e9f062571 100644
--- a/drivers/mfd/sun6i-prcm.c
+++ b/drivers/mfd/sun6i-prcm.c
@@ -152,7 +152,6 @@ static int sun6i_prcm_probe(struct platform_device *pdev)
152static struct platform_driver sun6i_prcm_driver = { 152static struct platform_driver sun6i_prcm_driver = {
153 .driver = { 153 .driver = {
154 .name = "sun6i-prcm", 154 .name = "sun6i-prcm",
155 .owner = THIS_MODULE,
156 .of_match_table = sun6i_prcm_dt_ids, 155 .of_match_table = sun6i_prcm_dt_ids,
157 }, 156 },
158 .probe = sun6i_prcm_probe, 157 .probe = sun6i_prcm_probe,
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index ca15878ce5c0..e85c052b302c 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -166,7 +166,6 @@ static const struct platform_device_id syscon_ids[] = {
166static struct platform_driver syscon_driver = { 166static struct platform_driver syscon_driver = {
167 .driver = { 167 .driver = {
168 .name = "syscon", 168 .name = "syscon",
169 .owner = THIS_MODULE,
170 .of_match_table = of_syscon_match, 169 .of_match_table = of_syscon_match,
171 }, 170 },
172 .probe = syscon_probe, 171 .probe = syscon_probe,
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c
index 9e04a7485981..3bb12e791982 100644
--- a/drivers/mfd/t7l66xb.c
+++ b/drivers/mfd/t7l66xb.c
@@ -431,7 +431,6 @@ static int t7l66xb_remove(struct platform_device *dev)
431static struct platform_driver t7l66xb_platform_driver = { 431static struct platform_driver t7l66xb_platform_driver = {
432 .driver = { 432 .driver = {
433 .name = "t7l66xb", 433 .name = "t7l66xb",
434 .owner = THIS_MODULE,
435 }, 434 },
436 .suspend = t7l66xb_suspend, 435 .suspend = t7l66xb_suspend,
437 .resume = t7l66xb_resume, 436 .resume = t7l66xb_resume,
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c
index 4fac16bcd732..aaf852242d76 100644
--- a/drivers/mfd/tc6393xb.c
+++ b/drivers/mfd/tc6393xb.c
@@ -831,7 +831,6 @@ static struct platform_driver tc6393xb_driver = {
831 831
832 .driver = { 832 .driver = {
833 .name = "tc6393xb", 833 .name = "tc6393xb",
834 .owner = THIS_MODULE,
835 }, 834 },
836}; 835};
837 836
diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c
index d877e777cce6..467c80e1c4ae 100644
--- a/drivers/mfd/ti_am335x_tscadc.c
+++ b/drivers/mfd/ti_am335x_tscadc.c
@@ -368,7 +368,6 @@ MODULE_DEVICE_TABLE(of, ti_tscadc_dt_ids);
368static struct platform_driver ti_tscadc_driver = { 368static struct platform_driver ti_tscadc_driver = {
369 .driver = { 369 .driver = {
370 .name = "ti_am3359-tscadc", 370 .name = "ti_am3359-tscadc",
371 .owner = THIS_MODULE,
372 .pm = TSCADC_PM_OPS, 371 .pm = TSCADC_PM_OPS,
373 .of_match_table = ti_tscadc_dt_ids, 372 .of_match_table = ti_tscadc_dt_ids,
374 }, 373 },
diff --git a/drivers/mfd/tps65911-comparator.c b/drivers/mfd/tps65911-comparator.c
index c0816ebd9d7e..c0789f81a1c5 100644
--- a/drivers/mfd/tps65911-comparator.c
+++ b/drivers/mfd/tps65911-comparator.c
@@ -166,7 +166,6 @@ static int tps65911_comparator_remove(struct platform_device *pdev)
166static struct platform_driver tps65911_comparator_driver = { 166static struct platform_driver tps65911_comparator_driver = {
167 .driver = { 167 .driver = {
168 .name = "tps65911-comparator", 168 .name = "tps65911-comparator",
169 .owner = THIS_MODULE,
170 }, 169 },
171 .probe = tps65911_comparator_probe, 170 .probe = tps65911_comparator_probe,
172 .remove = tps65911_comparator_remove, 171 .remove = tps65911_comparator_remove,
diff --git a/drivers/mfd/twl4030-audio.c b/drivers/mfd/twl4030-audio.c
index 07fe542e6fc0..0a1606480023 100644
--- a/drivers/mfd/twl4030-audio.c
+++ b/drivers/mfd/twl4030-audio.c
@@ -283,7 +283,6 @@ MODULE_DEVICE_TABLE(of, twl4030_audio_of_match);
283 283
284static struct platform_driver twl4030_audio_driver = { 284static struct platform_driver twl4030_audio_driver = {
285 .driver = { 285 .driver = {
286 .owner = THIS_MODULE,
287 .name = "twl4030-audio", 286 .name = "twl4030-audio",
288 .of_match_table = twl4030_audio_of_match, 287 .of_match_table = twl4030_audio_of_match,
289 }, 288 },
diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c
index cf92a6d1c532..fdea0cb75320 100644
--- a/drivers/mfd/twl4030-power.c
+++ b/drivers/mfd/twl4030-power.c
@@ -878,7 +878,6 @@ static int twl4030_power_remove(struct platform_device *pdev)
878static struct platform_driver twl4030_power_driver = { 878static struct platform_driver twl4030_power_driver = {
879 .driver = { 879 .driver = {
880 .name = "twl4030_power", 880 .name = "twl4030_power",
881 .owner = THIS_MODULE,
882 .of_match_table = of_match_ptr(twl4030_power_of_match), 881 .of_match_table = of_match_ptr(twl4030_power_of_match),
883 }, 882 },
884 .probe = twl4030_power_probe, 883 .probe = twl4030_power_probe,