Commit 78a83541 authored by Wolfram Sang's avatar Wolfram Sang

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: default avatarWolfram Sang <wsa@the-dreams.de>
parent 1a22cd17
...@@ -239,7 +239,6 @@ static int __exit ab3100_otp_remove(struct platform_device *pdev) ...@@ -239,7 +239,6 @@ static int __exit ab3100_otp_remove(struct platform_device *pdev)
static struct platform_driver ab3100_otp_driver = { static struct platform_driver ab3100_otp_driver = {
.driver = { .driver = {
.name = "ab3100-otp", .name = "ab3100-otp",
.owner = THIS_MODULE,
}, },
.remove = __exit_p(ab3100_otp_remove), .remove = __exit_p(ab3100_otp_remove),
}; };
......
...@@ -1848,7 +1848,6 @@ static const struct platform_device_id ab8500_id[] = { ...@@ -1848,7 +1848,6 @@ static const struct platform_device_id ab8500_id[] = {
static struct platform_driver ab8500_core_driver = { static struct platform_driver ab8500_core_driver = {
.driver = { .driver = {
.name = "ab8500-core", .name = "ab8500-core",
.owner = THIS_MODULE,
}, },
.probe = ab8500_probe, .probe = ab8500_probe,
.remove = ab8500_remove, .remove = ab8500_remove,
......
...@@ -3263,7 +3263,6 @@ static int ab8500_debug_remove(struct platform_device *plf) ...@@ -3263,7 +3263,6 @@ static int ab8500_debug_remove(struct platform_device *plf)
static struct platform_driver ab8500_debug_driver = { static struct platform_driver ab8500_debug_driver = {
.driver = { .driver = {
.name = "ab8500-debug", .name = "ab8500-debug",
.owner = THIS_MODULE,
}, },
.probe = ab8500_debug_probe, .probe = ab8500_debug_probe,
.remove = ab8500_debug_remove .remove = ab8500_debug_remove
......
...@@ -1044,7 +1044,6 @@ static struct platform_driver ab8500_gpadc_driver = { ...@@ -1044,7 +1044,6 @@ static struct platform_driver ab8500_gpadc_driver = {
.remove = ab8500_gpadc_remove, .remove = ab8500_gpadc_remove,
.driver = { .driver = {
.name = "ab8500-gpadc", .name = "ab8500-gpadc",
.owner = THIS_MODULE,
.pm = &ab8500_gpadc_pm_ops, .pm = &ab8500_gpadc_pm_ops,
}, },
}; };
......
...@@ -237,7 +237,6 @@ static int ab8500_sysctrl_remove(struct platform_device *pdev) ...@@ -237,7 +237,6 @@ static int ab8500_sysctrl_remove(struct platform_device *pdev)
static struct platform_driver ab8500_sysctrl_driver = { static struct platform_driver ab8500_sysctrl_driver = {
.driver = { .driver = {
.name = "ab8500-sysctrl", .name = "ab8500-sysctrl",
.owner = THIS_MODULE,
}, },
.probe = ab8500_sysctrl_probe, .probe = ab8500_sysctrl_probe,
.remove = ab8500_sysctrl_remove, .remove = ab8500_sysctrl_remove,
......
...@@ -143,7 +143,6 @@ static int davinci_vc_remove(struct platform_device *pdev) ...@@ -143,7 +143,6 @@ static int davinci_vc_remove(struct platform_device *pdev)
static struct platform_driver davinci_vc_driver = { static struct platform_driver davinci_vc_driver = {
.driver = { .driver = {
.name = "davinci_voicecodec", .name = "davinci_voicecodec",
.owner = THIS_MODULE,
}, },
.remove = davinci_vc_remove, .remove = davinci_vc_remove,
}; };
......
...@@ -3230,7 +3230,6 @@ static const struct of_device_id db8500_prcmu_match[] = { ...@@ -3230,7 +3230,6 @@ static const struct of_device_id db8500_prcmu_match[] = {
static struct platform_driver db8500_prcmu_driver = { static struct platform_driver db8500_prcmu_driver = {
.driver = { .driver = {
.name = "db8500-prcmu", .name = "db8500-prcmu",
.owner = THIS_MODULE,
.of_match_table = db8500_prcmu_match, .of_match_table = db8500_prcmu_match,
}, },
.probe = db8500_prcmu_probe, .probe = db8500_prcmu_probe,
......
...@@ -447,7 +447,6 @@ static struct platform_driver intel_msic_driver = { ...@@ -447,7 +447,6 @@ static struct platform_driver intel_msic_driver = {
.remove = intel_msic_remove, .remove = intel_msic_remove,
.driver = { .driver = {
.name = "intel_msic", .name = "intel_msic",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -324,7 +324,6 @@ static struct platform_driver jz4740_adc_driver = { ...@@ -324,7 +324,6 @@ static struct platform_driver jz4740_adc_driver = {
.remove = jz4740_adc_remove, .remove = jz4740_adc_remove,
.driver = { .driver = {
.name = "jz4740-adc", .name = "jz4740-adc",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -494,7 +494,6 @@ static int kempld_remove(struct platform_device *pdev) ...@@ -494,7 +494,6 @@ static int kempld_remove(struct platform_device *pdev)
static struct platform_driver kempld_driver = { static struct platform_driver kempld_driver = {
.driver = { .driver = {
.name = "kempld", .name = "kempld",
.owner = THIS_MODULE,
}, },
.probe = kempld_probe, .probe = kempld_probe,
.remove = kempld_remove, .remove = kempld_remove,
......
...@@ -299,7 +299,6 @@ static struct platform_driver mcp_sa11x0_driver = { ...@@ -299,7 +299,6 @@ static struct platform_driver mcp_sa11x0_driver = {
.remove = mcp_sa11x0_remove, .remove = mcp_sa11x0_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.pm = &mcp_sa11x0_pm_ops, .pm = &mcp_sa11x0_pm_ops,
}, },
}; };
......
...@@ -882,7 +882,6 @@ MODULE_DEVICE_TABLE(of, usbhs_omap_dt_ids); ...@@ -882,7 +882,6 @@ MODULE_DEVICE_TABLE(of, usbhs_omap_dt_ids);
static struct platform_driver usbhs_omap_driver = { static struct platform_driver usbhs_omap_driver = {
.driver = { .driver = {
.name = (char *)usbhs_driver_name, .name = (char *)usbhs_driver_name,
.owner = THIS_MODULE,
.pm = &usbhsomap_dev_pm_ops, .pm = &usbhsomap_dev_pm_ops,
.of_match_table = usbhs_omap_dt_ids, .of_match_table = usbhs_omap_dt_ids,
}, },
......
...@@ -319,7 +319,6 @@ MODULE_DEVICE_TABLE(of, usbtll_omap_dt_ids); ...@@ -319,7 +319,6 @@ MODULE_DEVICE_TABLE(of, usbtll_omap_dt_ids);
static struct platform_driver usbtll_omap_driver = { static struct platform_driver usbtll_omap_driver = {
.driver = { .driver = {
.name = (char *)usbtll_driver_name, .name = (char *)usbtll_driver_name,
.owner = THIS_MODULE,
.of_match_table = usbtll_omap_dt_ids, .of_match_table = usbtll_omap_dt_ids,
}, },
.probe = usbtll_omap_probe, .probe = usbtll_omap_probe,
......
...@@ -374,7 +374,6 @@ static struct platform_driver pm8921_driver = { ...@@ -374,7 +374,6 @@ static struct platform_driver pm8921_driver = {
.remove = pm8921_remove, .remove = pm8921_remove,
.driver = { .driver = {
.name = "pm8921-core", .name = "pm8921-core",
.owner = THIS_MODULE,
.of_match_table = pm8921_id_table, .of_match_table = pm8921_id_table,
}, },
}; };
......
...@@ -1723,7 +1723,6 @@ static const struct of_device_id of_sm501_match_tbl[] = { ...@@ -1723,7 +1723,6 @@ static const struct of_device_id of_sm501_match_tbl[] = {
static struct platform_driver sm501_plat_driver = { static struct platform_driver sm501_plat_driver = {
.driver = { .driver = {
.name = "sm501", .name = "sm501",
.owner = THIS_MODULE,
.of_match_table = of_sm501_match_tbl, .of_match_table = of_sm501_match_tbl,
}, },
.probe = sm501_plat_probe, .probe = sm501_plat_probe,
......
...@@ -327,7 +327,6 @@ static struct platform_driver ssbi_driver = { ...@@ -327,7 +327,6 @@ static struct platform_driver ssbi_driver = {
.probe = ssbi_probe, .probe = ssbi_probe,
.driver = { .driver = {
.name = "ssbi", .name = "ssbi",
.owner = THIS_MODULE,
.of_match_table = ssbi_match_table, .of_match_table = ssbi_match_table,
}, },
}; };
......
...@@ -368,7 +368,6 @@ static int sta2x11_scr_probe(struct platform_device *dev) ...@@ -368,7 +368,6 @@ static int sta2x11_scr_probe(struct platform_device *dev)
static struct platform_driver sta2x11_sctl_platform_driver = { static struct platform_driver sta2x11_sctl_platform_driver = {
.driver = { .driver = {
.name = STA2X11_MFD_SCTL_NAME, .name = STA2X11_MFD_SCTL_NAME,
.owner = THIS_MODULE,
}, },
.probe = sta2x11_sctl_probe, .probe = sta2x11_sctl_probe,
}; };
...@@ -382,7 +381,6 @@ static int __init sta2x11_sctl_init(void) ...@@ -382,7 +381,6 @@ static int __init sta2x11_sctl_init(void)
static struct platform_driver sta2x11_platform_driver = { static struct platform_driver sta2x11_platform_driver = {
.driver = { .driver = {
.name = STA2X11_MFD_APBREG_NAME, .name = STA2X11_MFD_APBREG_NAME,
.owner = THIS_MODULE,
}, },
.probe = sta2x11_apbreg_probe, .probe = sta2x11_apbreg_probe,
}; };
...@@ -396,7 +394,6 @@ static int __init sta2x11_apbreg_init(void) ...@@ -396,7 +394,6 @@ static int __init sta2x11_apbreg_init(void)
static struct platform_driver sta2x11_apb_soc_regs_platform_driver = { static struct platform_driver sta2x11_apb_soc_regs_platform_driver = {
.driver = { .driver = {
.name = STA2X11_MFD_APB_SOC_REGS_NAME, .name = STA2X11_MFD_APB_SOC_REGS_NAME,
.owner = THIS_MODULE,
}, },
.probe = sta2x11_apb_soc_regs_probe, .probe = sta2x11_apb_soc_regs_probe,
}; };
...@@ -410,7 +407,6 @@ static int __init sta2x11_apb_soc_regs_init(void) ...@@ -410,7 +407,6 @@ static int __init sta2x11_apb_soc_regs_init(void)
static struct platform_driver sta2x11_scr_platform_driver = { static struct platform_driver sta2x11_scr_platform_driver = {
.driver = { .driver = {
.name = STA2X11_MFD_SCR_NAME, .name = STA2X11_MFD_SCR_NAME,
.owner = THIS_MODULE,
}, },
.probe = sta2x11_scr_probe, .probe = sta2x11_scr_probe,
}; };
......
...@@ -152,7 +152,6 @@ static int sun6i_prcm_probe(struct platform_device *pdev) ...@@ -152,7 +152,6 @@ static int sun6i_prcm_probe(struct platform_device *pdev)
static struct platform_driver sun6i_prcm_driver = { static struct platform_driver sun6i_prcm_driver = {
.driver = { .driver = {
.name = "sun6i-prcm", .name = "sun6i-prcm",
.owner = THIS_MODULE,
.of_match_table = sun6i_prcm_dt_ids, .of_match_table = sun6i_prcm_dt_ids,
}, },
.probe = sun6i_prcm_probe, .probe = sun6i_prcm_probe,
......
...@@ -166,7 +166,6 @@ static const struct platform_device_id syscon_ids[] = { ...@@ -166,7 +166,6 @@ static const struct platform_device_id syscon_ids[] = {
static struct platform_driver syscon_driver = { static struct platform_driver syscon_driver = {
.driver = { .driver = {
.name = "syscon", .name = "syscon",
.owner = THIS_MODULE,
.of_match_table = of_syscon_match, .of_match_table = of_syscon_match,
}, },
.probe = syscon_probe, .probe = syscon_probe,
......
...@@ -431,7 +431,6 @@ static int t7l66xb_remove(struct platform_device *dev) ...@@ -431,7 +431,6 @@ static int t7l66xb_remove(struct platform_device *dev)
static struct platform_driver t7l66xb_platform_driver = { static struct platform_driver t7l66xb_platform_driver = {
.driver = { .driver = {
.name = "t7l66xb", .name = "t7l66xb",
.owner = THIS_MODULE,
}, },
.suspend = t7l66xb_suspend, .suspend = t7l66xb_suspend,
.resume = t7l66xb_resume, .resume = t7l66xb_resume,
......
...@@ -831,7 +831,6 @@ static struct platform_driver tc6393xb_driver = { ...@@ -831,7 +831,6 @@ static struct platform_driver tc6393xb_driver = {
.driver = { .driver = {
.name = "tc6393xb", .name = "tc6393xb",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -368,7 +368,6 @@ MODULE_DEVICE_TABLE(of, ti_tscadc_dt_ids); ...@@ -368,7 +368,6 @@ MODULE_DEVICE_TABLE(of, ti_tscadc_dt_ids);
static struct platform_driver ti_tscadc_driver = { static struct platform_driver ti_tscadc_driver = {
.driver = { .driver = {
.name = "ti_am3359-tscadc", .name = "ti_am3359-tscadc",
.owner = THIS_MODULE,
.pm = TSCADC_PM_OPS, .pm = TSCADC_PM_OPS,
.of_match_table = ti_tscadc_dt_ids, .of_match_table = ti_tscadc_dt_ids,
}, },
......
...@@ -166,7 +166,6 @@ static int tps65911_comparator_remove(struct platform_device *pdev) ...@@ -166,7 +166,6 @@ static int tps65911_comparator_remove(struct platform_device *pdev)
static struct platform_driver tps65911_comparator_driver = { static struct platform_driver tps65911_comparator_driver = {
.driver = { .driver = {
.name = "tps65911-comparator", .name = "tps65911-comparator",
.owner = THIS_MODULE,
}, },
.probe = tps65911_comparator_probe, .probe = tps65911_comparator_probe,
.remove = tps65911_comparator_remove, .remove = tps65911_comparator_remove,
......
...@@ -283,7 +283,6 @@ MODULE_DEVICE_TABLE(of, twl4030_audio_of_match); ...@@ -283,7 +283,6 @@ MODULE_DEVICE_TABLE(of, twl4030_audio_of_match);
static struct platform_driver twl4030_audio_driver = { static struct platform_driver twl4030_audio_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "twl4030-audio", .name = "twl4030-audio",
.of_match_table = twl4030_audio_of_match, .of_match_table = twl4030_audio_of_match,
}, },
......
...@@ -878,7 +878,6 @@ static int twl4030_power_remove(struct platform_device *pdev) ...@@ -878,7 +878,6 @@ static int twl4030_power_remove(struct platform_device *pdev)
static struct platform_driver twl4030_power_driver = { static struct platform_driver twl4030_power_driver = {
.driver = { .driver = {
.name = "twl4030_power", .name = "twl4030_power",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(twl4030_power_of_match), .of_match_table = of_match_ptr(twl4030_power_of_match),
}, },
.probe = twl4030_power_probe, .probe = twl4030_power_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment