Commit 30f51f24 authored by Wolfram Sang's avatar Wolfram Sang

cpufreq: 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 e030f980
...@@ -105,7 +105,6 @@ static int generic_bL_remove(struct platform_device *pdev) ...@@ -105,7 +105,6 @@ static int generic_bL_remove(struct platform_device *pdev)
static struct platform_driver generic_bL_platdrv = { static struct platform_driver generic_bL_platdrv = {
.driver = { .driver = {
.name = "arm-bL-cpufreq-dt", .name = "arm-bL-cpufreq-dt",
.owner = THIS_MODULE,
}, },
.probe = generic_bL_probe, .probe = generic_bL_probe,
.remove = generic_bL_remove, .remove = generic_bL_remove,
......
...@@ -351,7 +351,6 @@ static int dt_cpufreq_remove(struct platform_device *pdev) ...@@ -351,7 +351,6 @@ static int dt_cpufreq_remove(struct platform_device *pdev)
static struct platform_driver dt_cpufreq_platdrv = { static struct platform_driver dt_cpufreq_platdrv = {
.driver = { .driver = {
.name = "cpufreq-dt", .name = "cpufreq-dt",
.owner = THIS_MODULE,
}, },
.probe = dt_cpufreq_probe, .probe = dt_cpufreq_probe,
.remove = dt_cpufreq_remove, .remove = dt_cpufreq_remove,
......
...@@ -169,7 +169,6 @@ static int __exit davinci_cpufreq_remove(struct platform_device *pdev) ...@@ -169,7 +169,6 @@ static int __exit davinci_cpufreq_remove(struct platform_device *pdev)
static struct platform_driver davinci_cpufreq_driver = { static struct platform_driver davinci_cpufreq_driver = {
.driver = { .driver = {
.name = "cpufreq-davinci", .name = "cpufreq-davinci",
.owner = THIS_MODULE,
}, },
.remove = __exit_p(davinci_cpufreq_remove), .remove = __exit_p(davinci_cpufreq_remove),
}; };
......
...@@ -69,7 +69,6 @@ static int dbx500_cpufreq_probe(struct platform_device *pdev) ...@@ -69,7 +69,6 @@ static int dbx500_cpufreq_probe(struct platform_device *pdev)
static struct platform_driver dbx500_cpufreq_plat_driver = { static struct platform_driver dbx500_cpufreq_plat_driver = {
.driver = { .driver = {
.name = "cpufreq-ux500", .name = "cpufreq-ux500",
.owner = THIS_MODULE,
}, },
.probe = dbx500_cpufreq_probe, .probe = dbx500_cpufreq_probe,
}; };
......
...@@ -211,7 +211,6 @@ static int exynos_cpufreq_probe(struct platform_device *pdev) ...@@ -211,7 +211,6 @@ static int exynos_cpufreq_probe(struct platform_device *pdev)
static struct platform_driver exynos_cpufreq_platdrv = { static struct platform_driver exynos_cpufreq_platdrv = {
.driver = { .driver = {
.name = "exynos-cpufreq", .name = "exynos-cpufreq",
.owner = THIS_MODULE,
}, },
.probe = exynos_cpufreq_probe, .probe = exynos_cpufreq_probe,
}; };
......
...@@ -439,7 +439,6 @@ static int exynos_cpufreq_remove(struct platform_device *pdev) ...@@ -439,7 +439,6 @@ static int exynos_cpufreq_remove(struct platform_device *pdev)
static struct platform_driver exynos_cpufreq_platdrv = { static struct platform_driver exynos_cpufreq_platdrv = {
.driver = { .driver = {
.name = "exynos5440-cpufreq", .name = "exynos5440-cpufreq",
.owner = THIS_MODULE,
.of_match_table = exynos_cpufreq_match, .of_match_table = exynos_cpufreq_match,
}, },
.probe = exynos_cpufreq_probe, .probe = exynos_cpufreq_probe,
......
...@@ -348,7 +348,6 @@ static int imx6q_cpufreq_remove(struct platform_device *pdev) ...@@ -348,7 +348,6 @@ static int imx6q_cpufreq_remove(struct platform_device *pdev)
static struct platform_driver imx6q_cpufreq_platdrv = { static struct platform_driver imx6q_cpufreq_platdrv = {
.driver = { .driver = {
.name = "imx6q-cpufreq", .name = "imx6q-cpufreq",
.owner = THIS_MODULE,
}, },
.probe = imx6q_cpufreq_probe, .probe = imx6q_cpufreq_probe,
.remove = imx6q_cpufreq_remove, .remove = imx6q_cpufreq_remove,
......
...@@ -226,7 +226,6 @@ static const struct of_device_id integrator_cpufreq_match[] = { ...@@ -226,7 +226,6 @@ static const struct of_device_id integrator_cpufreq_match[] = {
static struct platform_driver integrator_cpufreq_driver = { static struct platform_driver integrator_cpufreq_driver = {
.driver = { .driver = {
.name = "integrator-cpufreq", .name = "integrator-cpufreq",
.owner = THIS_MODULE,
.of_match_table = integrator_cpufreq_match, .of_match_table = integrator_cpufreq_match,
}, },
.remove = __exit_p(integrator_cpufreq_remove), .remove = __exit_p(integrator_cpufreq_remove),
......
...@@ -183,7 +183,6 @@ static struct platform_driver kirkwood_cpufreq_platform_driver = { ...@@ -183,7 +183,6 @@ static struct platform_driver kirkwood_cpufreq_platform_driver = {
.remove = kirkwood_cpufreq_remove, .remove = kirkwood_cpufreq_remove,
.driver = { .driver = {
.name = "kirkwood-cpufreq", .name = "kirkwood-cpufreq",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -130,7 +130,6 @@ MODULE_DEVICE_TABLE(platform, platform_device_ids); ...@@ -130,7 +130,6 @@ MODULE_DEVICE_TABLE(platform, platform_device_ids);
static struct platform_driver platform_driver = { static struct platform_driver platform_driver = {
.driver = { .driver = {
.name = "loongson2_cpufreq", .name = "loongson2_cpufreq",
.owner = THIS_MODULE,
}, },
.id_table = platform_device_ids, .id_table = platform_device_ids,
}; };
......
...@@ -195,7 +195,6 @@ static int omap_cpufreq_remove(struct platform_device *pdev) ...@@ -195,7 +195,6 @@ static int omap_cpufreq_remove(struct platform_device *pdev)
static struct platform_driver omap_cpufreq_platdrv = { static struct platform_driver omap_cpufreq_platdrv = {
.driver = { .driver = {
.name = "omap-cpufreq", .name = "omap-cpufreq",
.owner = THIS_MODULE,
}, },
.probe = omap_cpufreq_probe, .probe = omap_cpufreq_probe,
.remove = omap_cpufreq_remove, .remove = omap_cpufreq_remove,
......
...@@ -656,7 +656,6 @@ static int s5pv210_cpufreq_probe(struct platform_device *pdev) ...@@ -656,7 +656,6 @@ static int s5pv210_cpufreq_probe(struct platform_device *pdev)
static struct platform_driver s5pv210_cpufreq_platdrv = { static struct platform_driver s5pv210_cpufreq_platdrv = {
.driver = { .driver = {
.name = "s5pv210-cpufreq", .name = "s5pv210-cpufreq",
.owner = THIS_MODULE,
}, },
.probe = s5pv210_cpufreq_probe, .probe = s5pv210_cpufreq_probe,
}; };
......
...@@ -236,7 +236,6 @@ static int spear_cpufreq_probe(struct platform_device *pdev) ...@@ -236,7 +236,6 @@ static int spear_cpufreq_probe(struct platform_device *pdev)
static struct platform_driver spear_cpufreq_platdrv = { static struct platform_driver spear_cpufreq_platdrv = {
.driver = { .driver = {
.name = "spear-cpufreq", .name = "spear-cpufreq",
.owner = THIS_MODULE,
}, },
.probe = spear_cpufreq_probe, .probe = spear_cpufreq_probe,
}; };
......
...@@ -60,7 +60,6 @@ static int ve_spc_cpufreq_remove(struct platform_device *pdev) ...@@ -60,7 +60,6 @@ static int ve_spc_cpufreq_remove(struct platform_device *pdev)
static struct platform_driver ve_spc_cpufreq_platdrv = { static struct platform_driver ve_spc_cpufreq_platdrv = {
.driver = { .driver = {
.name = "vexpress-spc-cpufreq", .name = "vexpress-spc-cpufreq",
.owner = THIS_MODULE,
}, },
.probe = ve_spc_cpufreq_probe, .probe = ve_spc_cpufreq_probe,
.remove = ve_spc_cpufreq_remove, .remove = ve_spc_cpufreq_remove,
......
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