mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
PM / devfreq: 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/devfreq 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.
While touching these drivers, make the alignment of the touched
initializers consistent.
Link: https://patchwork.kernel.org/project/linux-pm/patch/20241130135813.895628-2-u.kleine-koenig@baylibre.com/
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:
parent
ed33fbb5d5
commit
1f8ac4b95f
@ -283,10 +283,10 @@ static void exynos_nocp_remove(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
static struct platform_driver exynos_nocp_driver = {
|
||||
.probe = exynos_nocp_probe,
|
||||
.remove_new = exynos_nocp_remove,
|
||||
.probe = exynos_nocp_probe,
|
||||
.remove = exynos_nocp_remove,
|
||||
.driver = {
|
||||
.name = "exynos-nocp",
|
||||
.name = "exynos-nocp",
|
||||
.of_match_table = exynos_nocp_id_match,
|
||||
},
|
||||
};
|
||||
|
@ -700,10 +700,10 @@ static void exynos_ppmu_remove(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
static struct platform_driver exynos_ppmu_driver = {
|
||||
.probe = exynos_ppmu_probe,
|
||||
.remove_new = exynos_ppmu_remove,
|
||||
.probe = exynos_ppmu_probe,
|
||||
.remove = exynos_ppmu_remove,
|
||||
.driver = {
|
||||
.name = "exynos-ppmu",
|
||||
.name = "exynos-ppmu",
|
||||
.of_match_table = exynos_ppmu_id_match,
|
||||
},
|
||||
};
|
||||
|
@ -429,8 +429,8 @@ static const struct of_device_id mtk_ccifreq_machines[] = {
|
||||
MODULE_DEVICE_TABLE(of, mtk_ccifreq_machines);
|
||||
|
||||
static struct platform_driver mtk_ccifreq_platdrv = {
|
||||
.probe = mtk_ccifreq_probe,
|
||||
.remove_new = mtk_ccifreq_remove,
|
||||
.probe = mtk_ccifreq_probe,
|
||||
.remove = mtk_ccifreq_remove,
|
||||
.driver = {
|
||||
.name = "mtk-ccifreq",
|
||||
.of_match_table = mtk_ccifreq_machines,
|
||||
|
@ -473,11 +473,11 @@ static const struct of_device_id rk3399dmc_devfreq_of_match[] = {
|
||||
MODULE_DEVICE_TABLE(of, rk3399dmc_devfreq_of_match);
|
||||
|
||||
static struct platform_driver rk3399_dmcfreq_driver = {
|
||||
.probe = rk3399_dmcfreq_probe,
|
||||
.remove_new = rk3399_dmcfreq_remove,
|
||||
.probe = rk3399_dmcfreq_probe,
|
||||
.remove = rk3399_dmcfreq_remove,
|
||||
.driver = {
|
||||
.name = "rk3399-dmc-freq",
|
||||
.pm = &rk3399_dmcfreq_pm,
|
||||
.name = "rk3399-dmc-freq",
|
||||
.pm = &rk3399_dmcfreq_pm,
|
||||
.of_match_table = rk3399dmc_devfreq_of_match,
|
||||
},
|
||||
};
|
||||
|
@ -495,7 +495,7 @@ static SIMPLE_DEV_PM_OPS(sun8i_a33_mbus_pm_ops,
|
||||
|
||||
static struct platform_driver sun8i_a33_mbus_driver = {
|
||||
.probe = sun8i_a33_mbus_probe,
|
||||
.remove_new = sun8i_a33_mbus_remove,
|
||||
.remove = sun8i_a33_mbus_remove,
|
||||
.driver = {
|
||||
.name = "sun8i-a33-mbus",
|
||||
.of_match_table = sun8i_a33_mbus_of_match,
|
||||
|
Loading…
Reference in New Issue
Block a user