mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
clk: 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 clk drivers 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>
Link: https://lore.kernel.org/r/20240909144026.870565-2-u.kleine-koenig@baylibre.com
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> # renesas
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
committed by
Stephen Boyd
parent
1b189f71e1
commit
f00b45db02
@@ -215,7 +215,7 @@ static struct platform_driver i2s_pll_clk_driver = {
|
||||
.of_match_table = i2s_pll_clk_id,
|
||||
},
|
||||
.probe = i2s_pll_clk_probe,
|
||||
.remove_new = i2s_pll_clk_remove,
|
||||
.remove = i2s_pll_clk_remove,
|
||||
};
|
||||
module_platform_driver(i2s_pll_clk_driver);
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ MODULE_DEVICE_TABLE(of, clk_dvp_dt_ids);
|
||||
|
||||
static struct platform_driver clk_dvp_driver = {
|
||||
.probe = clk_dvp_probe,
|
||||
.remove_new = clk_dvp_remove,
|
||||
.remove = clk_dvp_remove,
|
||||
.driver = {
|
||||
.name = "brcm2711-dvp",
|
||||
.of_match_table = clk_dvp_dt_ids,
|
||||
|
||||
@@ -567,7 +567,7 @@ static const struct of_device_id clk_bcm63xx_dt_ids[] = {
|
||||
|
||||
static struct platform_driver clk_bcm63xx = {
|
||||
.probe = clk_bcm63xx_probe,
|
||||
.remove_new = clk_bcm63xx_remove,
|
||||
.remove = clk_bcm63xx_remove,
|
||||
.driver = {
|
||||
.name = "bcm63xx-clock",
|
||||
.of_match_table = clk_bcm63xx_dt_ids,
|
||||
|
||||
@@ -458,7 +458,7 @@ static struct platform_driver raspberrypi_clk_driver = {
|
||||
.of_match_table = raspberrypi_clk_match,
|
||||
},
|
||||
.probe = raspberrypi_clk_probe,
|
||||
.remove_new = raspberrypi_clk_remove,
|
||||
.remove = raspberrypi_clk_remove,
|
||||
};
|
||||
module_platform_driver(raspberrypi_clk_driver);
|
||||
|
||||
|
||||
@@ -405,7 +405,7 @@ static struct platform_driver of_fixed_factor_clk_driver = {
|
||||
.of_match_table = of_fixed_factor_clk_ids,
|
||||
},
|
||||
.probe = of_fixed_factor_clk_probe,
|
||||
.remove_new = of_fixed_factor_clk_remove,
|
||||
.remove = of_fixed_factor_clk_remove,
|
||||
};
|
||||
builtin_platform_driver(of_fixed_factor_clk_driver);
|
||||
#endif
|
||||
|
||||
@@ -91,7 +91,7 @@ static struct platform_driver of_fixed_mmio_clk_driver = {
|
||||
.of_match_table = of_fixed_mmio_clk_ids,
|
||||
},
|
||||
.probe = of_fixed_mmio_clk_probe,
|
||||
.remove_new = of_fixed_mmio_clk_remove,
|
||||
.remove = of_fixed_mmio_clk_remove,
|
||||
};
|
||||
module_platform_driver(of_fixed_mmio_clk_driver);
|
||||
|
||||
|
||||
@@ -232,7 +232,7 @@ static struct platform_driver of_fixed_clk_driver = {
|
||||
.of_match_table = of_fixed_clk_ids,
|
||||
},
|
||||
.probe = of_fixed_clk_probe,
|
||||
.remove_new = of_fixed_clk_remove,
|
||||
.remove = of_fixed_clk_remove,
|
||||
};
|
||||
builtin_platform_driver(of_fixed_clk_driver);
|
||||
#endif
|
||||
|
||||
@@ -281,7 +281,7 @@ static struct platform_driver palmas_clks_driver = {
|
||||
.of_match_table = palmas_clks_of_match,
|
||||
},
|
||||
.probe = palmas_clks_probe,
|
||||
.remove_new = palmas_clks_remove,
|
||||
.remove = palmas_clks_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(palmas_clks_driver);
|
||||
|
||||
@@ -142,7 +142,7 @@ MODULE_DEVICE_TABLE(of, clk_pwm_dt_ids);
|
||||
|
||||
static struct platform_driver clk_pwm_driver = {
|
||||
.probe = clk_pwm_probe,
|
||||
.remove_new = clk_pwm_remove,
|
||||
.remove = clk_pwm_remove,
|
||||
.driver = {
|
||||
.name = "pwm-clock",
|
||||
.of_match_table = clk_pwm_dt_ids,
|
||||
|
||||
@@ -263,7 +263,7 @@ static struct platform_driver s2mps11_clk_driver = {
|
||||
.name = "s2mps11-clk",
|
||||
},
|
||||
.probe = s2mps11_clk_probe,
|
||||
.remove_new = s2mps11_clk_remove,
|
||||
.remove = s2mps11_clk_remove,
|
||||
.id_table = s2mps11_clk_id,
|
||||
};
|
||||
module_platform_driver(s2mps11_clk_driver);
|
||||
|
||||
@@ -303,7 +303,7 @@ static struct platform_driver scpi_clocks_driver = {
|
||||
.of_match_table = scpi_clocks_ids,
|
||||
},
|
||||
.probe = scpi_clocks_probe,
|
||||
.remove_new = scpi_clocks_remove,
|
||||
.remove = scpi_clocks_remove,
|
||||
};
|
||||
module_platform_driver(scpi_clocks_driver);
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ MODULE_DEVICE_TABLE(of, hi3519_clk_match_table);
|
||||
|
||||
static struct platform_driver hi3519_clk_driver = {
|
||||
.probe = hi3519_clk_probe,
|
||||
.remove_new = hi3519_clk_remove,
|
||||
.remove = hi3519_clk_remove,
|
||||
.driver = {
|
||||
.name = "hi3519-clk",
|
||||
.of_match_table = hi3519_clk_match_table,
|
||||
|
||||
@@ -817,7 +817,7 @@ static void hi3559av100_crg_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver hi3559av100_crg_driver = {
|
||||
.probe = hi3559av100_crg_probe,
|
||||
.remove_new = hi3559av100_crg_remove,
|
||||
.remove = hi3559av100_crg_remove,
|
||||
.driver = {
|
||||
.name = "hi3559av100-clock",
|
||||
.of_match_table = hi3559av100_crg_match_table,
|
||||
|
||||
@@ -294,7 +294,7 @@ static void hi3516cv300_crg_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver hi3516cv300_crg_driver = {
|
||||
.probe = hi3516cv300_crg_probe,
|
||||
.remove_new = hi3516cv300_crg_remove,
|
||||
.remove = hi3516cv300_crg_remove,
|
||||
.driver = {
|
||||
.name = "hi3516cv300-crg",
|
||||
.of_match_table = hi3516cv300_crg_match_table,
|
||||
|
||||
@@ -377,7 +377,7 @@ static void hi3798cv200_crg_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver hi3798cv200_crg_driver = {
|
||||
.probe = hi3798cv200_crg_probe,
|
||||
.remove_new = hi3798cv200_crg_remove,
|
||||
.remove = hi3798cv200_crg_remove,
|
||||
.driver = {
|
||||
.name = "hi3798cv200-crg",
|
||||
.of_match_table = hi3798cv200_crg_match_table,
|
||||
|
||||
@@ -488,7 +488,7 @@ static struct platform_driver imx8_acm_clk_driver = {
|
||||
.pm = &imx8_acm_pm_ops,
|
||||
},
|
||||
.probe = imx8_acm_clk_probe,
|
||||
.remove_new = imx8_acm_clk_remove,
|
||||
.remove = imx8_acm_clk_remove,
|
||||
};
|
||||
module_platform_driver(imx8_acm_clk_driver);
|
||||
|
||||
|
||||
@@ -454,7 +454,7 @@ MODULE_DEVICE_TABLE(of, clk_imx8mp_audiomix_of_match);
|
||||
|
||||
static struct platform_driver clk_imx8mp_audiomix_driver = {
|
||||
.probe = clk_imx8mp_audiomix_probe,
|
||||
.remove_new = clk_imx8mp_audiomix_remove,
|
||||
.remove = clk_imx8mp_audiomix_remove,
|
||||
.driver = {
|
||||
.name = "imx8mp-audio-blk-ctrl",
|
||||
.of_match_table = clk_imx8mp_audiomix_of_match,
|
||||
|
||||
@@ -707,7 +707,7 @@ static void ti_sci_clk_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver ti_sci_clk_driver = {
|
||||
.probe = ti_sci_clk_probe,
|
||||
.remove_new = ti_sci_clk_remove,
|
||||
.remove = ti_sci_clk_remove,
|
||||
.driver = {
|
||||
.name = "ti-sci-clk",
|
||||
.of_match_table = of_match_ptr(ti_sci_clk_of_match),
|
||||
|
||||
@@ -158,7 +158,7 @@ static void clk_mt2701_aud_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver clk_mt2701_aud_drv = {
|
||||
.probe = clk_mt2701_aud_probe,
|
||||
.remove_new = clk_mt2701_aud_remove,
|
||||
.remove = clk_mt2701_aud_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt2701-aud",
|
||||
.of_match_table = of_match_clk_mt2701_aud,
|
||||
|
||||
@@ -99,7 +99,7 @@ MODULE_DEVICE_TABLE(of, of_match_clk_mt2701_bdp);
|
||||
|
||||
static struct platform_driver clk_mt2701_bdp_drv = {
|
||||
.probe = mtk_clk_simple_probe,
|
||||
.remove_new = mtk_clk_simple_remove,
|
||||
.remove = mtk_clk_simple_remove,
|
||||
.driver = {
|
||||
.name = "clk-mt2701-bdp",
|
||||
.of_match_table = of_match_clk_mt2701_bdp,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user