mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
remoteproc: 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/remoteproc 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/20241025131340.258233-2-u.kleine-koenig@baylibre.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
This commit is contained in:
parent
3a8c30e88c
commit
ad64a7c4a4
@ -365,7 +365,7 @@ MODULE_DEVICE_TABLE(of, davinci_rproc_of_match);
|
||||
|
||||
static struct platform_driver da8xx_rproc_driver = {
|
||||
.probe = da8xx_rproc_probe,
|
||||
.remove_new = da8xx_rproc_remove,
|
||||
.remove = da8xx_rproc_remove,
|
||||
.driver = {
|
||||
.name = "davinci-rproc",
|
||||
.of_match_table = of_match_ptr(davinci_rproc_of_match),
|
||||
|
@ -1258,7 +1258,7 @@ MODULE_DEVICE_TABLE(of, imx_dsp_rproc_of_match);
|
||||
|
||||
static struct platform_driver imx_dsp_rproc_driver = {
|
||||
.probe = imx_dsp_rproc_probe,
|
||||
.remove_new = imx_dsp_rproc_remove,
|
||||
.remove = imx_dsp_rproc_remove,
|
||||
.driver = {
|
||||
.name = "imx-dsp-rproc",
|
||||
.of_match_table = imx_dsp_rproc_of_match,
|
||||
|
@ -1198,7 +1198,7 @@ MODULE_DEVICE_TABLE(of, imx_rproc_of_match);
|
||||
|
||||
static struct platform_driver imx_rproc_driver = {
|
||||
.probe = imx_rproc_probe,
|
||||
.remove_new = imx_rproc_remove,
|
||||
.remove = imx_rproc_remove,
|
||||
.driver = {
|
||||
.name = "imx-rproc",
|
||||
.of_match_table = imx_rproc_of_match,
|
||||
|
@ -490,7 +490,7 @@ MODULE_DEVICE_TABLE(of, keystone_rproc_of_match);
|
||||
|
||||
static struct platform_driver keystone_rproc_driver = {
|
||||
.probe = keystone_rproc_probe,
|
||||
.remove_new = keystone_rproc_remove,
|
||||
.remove = keystone_rproc_remove,
|
||||
.driver = {
|
||||
.name = "keystone-rproc",
|
||||
.of_match_table = keystone_rproc_of_match,
|
||||
|
@ -246,7 +246,7 @@ MODULE_DEVICE_TABLE(of, meson_mx_ao_arc_rproc_match);
|
||||
|
||||
static struct platform_driver meson_mx_ao_arc_rproc_driver = {
|
||||
.probe = meson_mx_ao_arc_rproc_probe,
|
||||
.remove_new = meson_mx_ao_arc_rproc_remove,
|
||||
.remove = meson_mx_ao_arc_rproc_remove,
|
||||
.driver = {
|
||||
.name = "meson-mx-ao-arc-rproc",
|
||||
.of_match_table = meson_mx_ao_arc_rproc_match,
|
||||
|
@ -1521,7 +1521,7 @@ MODULE_DEVICE_TABLE(of, mtk_scp_of_match);
|
||||
|
||||
static struct platform_driver mtk_scp_driver = {
|
||||
.probe = scp_probe,
|
||||
.remove_new = scp_remove,
|
||||
.remove = scp_remove,
|
||||
.driver = {
|
||||
.name = "mtk-scp",
|
||||
.of_match_table = mtk_scp_of_match,
|
||||
|
@ -1132,7 +1132,7 @@ static struct platform_driver pru_rproc_driver = {
|
||||
.suppress_bind_attrs = true,
|
||||
},
|
||||
.probe = pru_rproc_probe,
|
||||
.remove_new = pru_rproc_remove,
|
||||
.remove = pru_rproc_remove,
|
||||
};
|
||||
module_platform_driver(pru_rproc_driver);
|
||||
|
||||
|
@ -840,7 +840,7 @@ MODULE_DEVICE_TABLE(of, adsp_of_match);
|
||||
|
||||
static struct platform_driver adsp_pil_driver = {
|
||||
.probe = adsp_probe,
|
||||
.remove_new = adsp_remove,
|
||||
.remove = adsp_remove,
|
||||
.driver = {
|
||||
.name = "qcom_q6v5_adsp",
|
||||
.of_match_table = adsp_of_match,
|
||||
|
@ -2533,7 +2533,7 @@ MODULE_DEVICE_TABLE(of, q6v5_of_match);
|
||||
|
||||
static struct platform_driver q6v5_driver = {
|
||||
.probe = q6v5_probe,
|
||||
.remove_new = q6v5_remove,
|
||||
.remove = q6v5_remove,
|
||||
.driver = {
|
||||
.name = "qcom-q6v5-mss",
|
||||
.of_match_table = q6v5_of_match,
|
||||
|
@ -1477,7 +1477,7 @@ MODULE_DEVICE_TABLE(of, adsp_of_match);
|
||||
|
||||
static struct platform_driver adsp_driver = {
|
||||
.probe = adsp_probe,
|
||||
.remove_new = adsp_remove,
|
||||
.remove = adsp_remove,
|
||||
.driver = {
|
||||
.name = "qcom_q6v5_pas",
|
||||
.of_match_table = adsp_of_match,
|
||||
|
@ -1111,7 +1111,7 @@ MODULE_DEVICE_TABLE(of, q6v5_wcss_of_match);
|
||||
|
||||
static struct platform_driver q6v5_wcss_driver = {
|
||||
.probe = q6v5_wcss_probe,
|
||||
.remove_new = q6v5_wcss_remove,
|
||||
.remove = q6v5_wcss_remove,
|
||||
.driver = {
|
||||
.name = "qcom-q6v5-wcss-pil",
|
||||
.of_match_table = q6v5_wcss_of_match,
|
||||
|
@ -682,7 +682,7 @@ MODULE_DEVICE_TABLE(of, wcnss_of_match);
|
||||
|
||||
static struct platform_driver wcnss_driver = {
|
||||
.probe = wcnss_probe,
|
||||
.remove_new = wcnss_remove,
|
||||
.remove = wcnss_remove,
|
||||
.driver = {
|
||||
.name = "qcom-wcnss-pil",
|
||||
.of_match_table = wcnss_of_match,
|
||||
|
@ -214,7 +214,7 @@ MODULE_DEVICE_TABLE(of, rcar_rproc_of_match);
|
||||
|
||||
static struct platform_driver rcar_rproc_driver = {
|
||||
.probe = rcar_rproc_probe,
|
||||
.remove_new = rcar_rproc_remove,
|
||||
.remove = rcar_rproc_remove,
|
||||
.driver = {
|
||||
.name = "rcar-rproc",
|
||||
.of_match_table = rcar_rproc_of_match,
|
||||
|
@ -593,7 +593,7 @@ static void rproc_virtio_remove(struct platform_device *pdev)
|
||||
/* Platform driver */
|
||||
static struct platform_driver rproc_virtio_driver = {
|
||||
.probe = rproc_virtio_probe,
|
||||
.remove_new = rproc_virtio_remove,
|
||||
.remove = rproc_virtio_remove,
|
||||
.driver = {
|
||||
.name = "rproc-virtio",
|
||||
},
|
||||
|
@ -457,7 +457,7 @@ static void st_rproc_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver st_rproc_driver = {
|
||||
.probe = st_rproc_probe,
|
||||
.remove_new = st_rproc_remove,
|
||||
.remove = st_rproc_remove,
|
||||
.driver = {
|
||||
.name = "st-rproc",
|
||||
.of_match_table = of_match_ptr(st_rproc_match),
|
||||
|
@ -946,7 +946,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stm32_rproc_pm_ops,
|
||||
|
||||
static struct platform_driver stm32_rproc_driver = {
|
||||
.probe = stm32_rproc_probe,
|
||||
.remove_new = stm32_rproc_remove,
|
||||
.remove = stm32_rproc_remove,
|
||||
.driver = {
|
||||
.name = "stm32-rproc",
|
||||
.pm = pm_ptr(&stm32_rproc_pm_ops),
|
||||
|
@ -791,7 +791,7 @@ MODULE_DEVICE_TABLE(of, k3_dsp_of_match);
|
||||
|
||||
static struct platform_driver k3_dsp_rproc_driver = {
|
||||
.probe = k3_dsp_rproc_probe,
|
||||
.remove_new = k3_dsp_rproc_remove,
|
||||
.remove = k3_dsp_rproc_remove,
|
||||
.driver = {
|
||||
.name = "k3-dsp-rproc",
|
||||
.of_match_table = k3_dsp_of_match,
|
||||
|
@ -251,7 +251,7 @@ static const struct dev_pm_ops wkup_m3_rproc_pm_ops = {
|
||||
|
||||
static struct platform_driver wkup_m3_rproc_driver = {
|
||||
.probe = wkup_m3_rproc_probe,
|
||||
.remove_new = wkup_m3_rproc_remove,
|
||||
.remove = wkup_m3_rproc_remove,
|
||||
.driver = {
|
||||
.name = "wkup_m3_rproc",
|
||||
.of_match_table = wkup_m3_rproc_of_match,
|
||||
|
Loading…
Reference in New Issue
Block a user