mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
cpufreq: Switch back to struct platform_driver::remove()
After commit 0edb555a65
("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.
Convert all platform drivers below drivers/cpufreq to use .remove(),
with the eventual goal to drop struct platform_driver::remove_new(). As
.remove() and .remove_new() have the same prototypes, conversion is done
by just changing the structure member name in the driver initializer.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/20241020153910.324096-2-u.kleine-koenig@baylibre.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
8d5459f1a7
commit
a9dedaa07b
@ -1028,7 +1028,7 @@ static struct platform_driver acpi_cpufreq_platdrv = {
|
||||
.driver = {
|
||||
.name = "acpi-cpufreq",
|
||||
},
|
||||
.remove_new = acpi_cpufreq_remove,
|
||||
.remove = acpi_cpufreq_remove,
|
||||
};
|
||||
|
||||
static int __init acpi_cpufreq_init(void)
|
||||
|
@ -777,7 +777,7 @@ static struct platform_driver brcm_avs_cpufreq_platdrv = {
|
||||
.of_match_table = brcm_avs_cpufreq_match,
|
||||
},
|
||||
.probe = brcm_avs_cpufreq_probe,
|
||||
.remove_new = brcm_avs_cpufreq_remove,
|
||||
.remove = brcm_avs_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(brcm_avs_cpufreq_platdrv);
|
||||
|
||||
|
@ -345,7 +345,7 @@ static struct platform_driver dt_cpufreq_platdrv = {
|
||||
.name = "cpufreq-dt",
|
||||
},
|
||||
.probe = dt_cpufreq_probe,
|
||||
.remove_new = dt_cpufreq_remove,
|
||||
.remove = dt_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(dt_cpufreq_platdrv);
|
||||
|
||||
|
@ -145,7 +145,7 @@ static struct platform_driver davinci_cpufreq_driver = {
|
||||
.driver = {
|
||||
.name = "cpufreq-davinci",
|
||||
},
|
||||
.remove_new = __exit_p(davinci_cpufreq_remove),
|
||||
.remove = __exit_p(davinci_cpufreq_remove),
|
||||
};
|
||||
|
||||
int __init davinci_cpufreq_init(void)
|
||||
|
@ -183,7 +183,7 @@ static void imx_cpufreq_dt_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver imx_cpufreq_dt_driver = {
|
||||
.probe = imx_cpufreq_dt_probe,
|
||||
.remove_new = imx_cpufreq_dt_remove,
|
||||
.remove = imx_cpufreq_dt_remove,
|
||||
.driver = {
|
||||
.name = "imx-cpufreq-dt",
|
||||
},
|
||||
|
@ -522,7 +522,7 @@ static struct platform_driver imx6q_cpufreq_platdrv = {
|
||||
.name = "imx6q-cpufreq",
|
||||
},
|
||||
.probe = imx6q_cpufreq_probe,
|
||||
.remove_new = imx6q_cpufreq_remove,
|
||||
.remove = imx6q_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(imx6q_cpufreq_platdrv);
|
||||
|
||||
|
@ -189,7 +189,7 @@ static void kirkwood_cpufreq_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver kirkwood_cpufreq_platform_driver = {
|
||||
.probe = kirkwood_cpufreq_probe,
|
||||
.remove_new = kirkwood_cpufreq_remove,
|
||||
.remove = kirkwood_cpufreq_remove,
|
||||
.driver = {
|
||||
.name = "kirkwood-cpufreq",
|
||||
},
|
||||
|
@ -386,7 +386,7 @@ static struct platform_driver loongson3_platform_driver = {
|
||||
},
|
||||
.id_table = cpufreq_id_table,
|
||||
.probe = loongson3_cpufreq_probe,
|
||||
.remove_new = loongson3_cpufreq_remove,
|
||||
.remove = loongson3_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(loongson3_platform_driver);
|
||||
|
||||
|
@ -344,7 +344,7 @@ MODULE_DEVICE_TABLE(of, mtk_cpufreq_hw_match);
|
||||
|
||||
static struct platform_driver mtk_cpufreq_hw_driver = {
|
||||
.probe = mtk_cpufreq_hw_driver_probe,
|
||||
.remove_new = mtk_cpufreq_hw_driver_remove,
|
||||
.remove = mtk_cpufreq_hw_driver_remove,
|
||||
.driver = {
|
||||
.name = "mtk-cpufreq-hw",
|
||||
.of_match_table = mtk_cpufreq_hw_match,
|
||||
|
@ -188,7 +188,7 @@ static struct platform_driver omap_cpufreq_platdrv = {
|
||||
.name = "omap-cpufreq",
|
||||
},
|
||||
.probe = omap_cpufreq_probe,
|
||||
.remove_new = omap_cpufreq_remove,
|
||||
.remove = omap_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(omap_cpufreq_platdrv);
|
||||
|
||||
|
@ -615,7 +615,7 @@ static struct platform_driver pcc_cpufreq_platdrv = {
|
||||
.driver = {
|
||||
.name = "pcc-cpufreq",
|
||||
},
|
||||
.remove_new = pcc_cpufreq_remove,
|
||||
.remove = pcc_cpufreq_remove,
|
||||
};
|
||||
|
||||
static int __init pcc_cpufreq_init(void)
|
||||
|
@ -736,7 +736,7 @@ static void qcom_cpufreq_hw_driver_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver qcom_cpufreq_hw_driver = {
|
||||
.probe = qcom_cpufreq_hw_driver_probe,
|
||||
.remove_new = qcom_cpufreq_hw_driver_remove,
|
||||
.remove = qcom_cpufreq_hw_driver_remove,
|
||||
.driver = {
|
||||
.name = "qcom-cpufreq-hw",
|
||||
.of_match_table = qcom_cpufreq_hw_match,
|
||||
|
@ -604,7 +604,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(qcom_cpufreq_pm_ops, qcom_cpufreq_suspend, NULL)
|
||||
|
||||
static struct platform_driver qcom_cpufreq_driver = {
|
||||
.probe = qcom_cpufreq_probe,
|
||||
.remove_new = qcom_cpufreq_remove,
|
||||
.remove = qcom_cpufreq_remove,
|
||||
.driver = {
|
||||
.name = "qcom-cpufreq-nvmem",
|
||||
.pm = pm_sleep_ptr(&qcom_cpufreq_pm_ops),
|
||||
|
@ -296,7 +296,7 @@ static struct platform_driver qoriq_cpufreq_platform_driver = {
|
||||
.name = "qoriq-cpufreq",
|
||||
},
|
||||
.probe = qoriq_cpufreq_probe,
|
||||
.remove_new = qoriq_cpufreq_remove,
|
||||
.remove = qoriq_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(qoriq_cpufreq_platform_driver);
|
||||
|
||||
|
@ -85,7 +85,7 @@ static struct platform_driver raspberrypi_cpufreq_driver = {
|
||||
.name = "raspberrypi-cpufreq",
|
||||
},
|
||||
.probe = raspberrypi_cpufreq_probe,
|
||||
.remove_new = raspberrypi_cpufreq_remove,
|
||||
.remove = raspberrypi_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(raspberrypi_cpufreq_driver);
|
||||
|
||||
|
@ -217,7 +217,7 @@ static struct platform_driver scpi_cpufreq_platdrv = {
|
||||
.name = "scpi-cpufreq",
|
||||
},
|
||||
.probe = scpi_cpufreq_probe,
|
||||
.remove_new = scpi_cpufreq_remove,
|
||||
.remove = scpi_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(scpi_cpufreq_platdrv);
|
||||
|
||||
|
@ -283,7 +283,7 @@ static void sun50i_cpufreq_nvmem_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver sun50i_cpufreq_driver = {
|
||||
.probe = sun50i_cpufreq_nvmem_probe,
|
||||
.remove_new = sun50i_cpufreq_nvmem_remove,
|
||||
.remove = sun50i_cpufreq_nvmem_remove,
|
||||
.driver = {
|
||||
.name = "sun50i-cpufreq-nvmem",
|
||||
},
|
||||
|
@ -276,7 +276,7 @@ static struct platform_driver tegra186_cpufreq_platform_driver = {
|
||||
.of_match_table = tegra186_cpufreq_of_match,
|
||||
},
|
||||
.probe = tegra186_cpufreq_probe,
|
||||
.remove_new = tegra186_cpufreq_remove,
|
||||
.remove = tegra186_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(tegra186_cpufreq_platform_driver);
|
||||
|
||||
|
@ -818,7 +818,7 @@ static struct platform_driver tegra194_ccplex_driver = {
|
||||
.of_match_table = tegra194_cpufreq_of_match,
|
||||
},
|
||||
.probe = tegra194_cpufreq_probe,
|
||||
.remove_new = tegra194_cpufreq_remove,
|
||||
.remove = tegra194_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(tegra194_ccplex_driver);
|
||||
|
||||
|
@ -565,7 +565,7 @@ static struct platform_driver ve_spc_cpufreq_platdrv = {
|
||||
.name = "vexpress-spc-cpufreq",
|
||||
},
|
||||
.probe = ve_spc_cpufreq_probe,
|
||||
.remove_new = ve_spc_cpufreq_remove,
|
||||
.remove = ve_spc_cpufreq_remove,
|
||||
};
|
||||
module_platform_driver(ve_spc_cpufreq_platdrv);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user