firmware: Switch back to struct platform_driver::remove()
Subsystems (10)
PATCH 1/1 firmware: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers.
Convert all platform drivers below drivers/firmware 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.
---
Hello,
I did a single patch for all of drivers/firmware. While I usually prefer to do one logical change per patch, this seems to be overengineering here as the individual changes are really trivial and shouldn't be much in the way for stable backports.
There is no dedicated maintainer for drivers/firmware, maybe Sudeep as biggest committer there can take it? Or would it be sensible to split this patch?
This is based on yesterday's next, if conflicts arise when you apply it at some later time and don't want to resolve them, feel free to just drop the changes to the conflicting files. I'll notice and followup at a later time then. Or ask me for a fixed resend. (Having said that, I recommend b4 am -3 + git am -3 which should resolve most conflicts just fine.)
Best regards
Uwe
drivers/firmware/arm_scmi/driver.c | 2 +- drivers/firmware/arm_scpi.c | 2 +- drivers/firmware/google/coreboot_table.c | 2 +- drivers/firmware/imx/imx-dsp.c | 2 +- drivers/firmware/microchip/mpfs-auto-update.c | 2 +- drivers/firmware/mtk-adsp-ipc.c | 2 +- drivers/firmware/qemu_fw_cfg.c | 2 +- drivers/firmware/raspberrypi.c | 2 +- drivers/firmware/stratix10-rsu.c | 2 +- drivers/firmware/stratix10-svc.c | 2 +- drivers/firmware/xilinx/zynqmp.c | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-)
drivers/firmware/arm_scmi/driver.c +1 -1
@@ -3333,7 +3333,7 @@ static struct platform_driver scmi_driver = { .dev_groups = versions_groups, }, .probe = scmi_probe, - .remove_new = scmi_remove, + .remove = scmi_remove, };static struct dentry *scmi_debugfs_init (void )
drivers/firmware/arm_scpi.c +1 -1
@@ -1049,7 +1049,7 @@ static struct platform_driver scpi_driver = { .dev_groups = versions_groups, }, .probe = scpi_probe, - .remove_new = scpi_remove, + .remove = scpi_remove, };module_platform_driver (scpi_driver);
drivers/firmware/google/coreboot_table.c +1 -1
@@ -220,7 +220,7 @@ MODULE_DEVICE_TABLE(of, coreboot_of_match);static struct platform_driver coreboot_table_driver = { .probe = coreboot_table_probe, - .remove_new = coreboot_table_remove, + .remove = coreboot_table_remove, .driver = { .name ="coreboot_table" , .acpi_match_table =ACPI_PTR (cros_coreboot_acpi_match),
drivers/firmware/imx/imx-dsp.c +1 -1
@@ -180,7 +180,7 @@ static struct platform_driver imx_dsp_driver = { .name = "imx-dsp", }, .probe = imx_dsp_probe, - .remove_new = imx_dsp_remove, + .remove = imx_dsp_remove, };builtin_platform_driver (imx_dsp_driver);
drivers/firmware/microchip/mpfs-auto-update.c +1 -1
@@ -458,7 +458,7 @@ static struct platform_driver mpfs_auto_update_driver = { .name = "mpfs-auto-update", }, .probe = mpfs_auto_update_probe, - .remove_new = mpfs_auto_update_remove, + .remove = mpfs_auto_update_remove, };module_platform_driver (mpfs_auto_update_driver);
drivers/firmware/mtk-adsp-ipc.c +1 -1
@@ -132,7 +132,7 @@ static struct platform_driver mtk_adsp_ipc_driver = { .name = "mtk-adsp-ipc", }, .probe = mtk_adsp_ipc_probe, - .remove_new = mtk_adsp_ipc_remove, + .remove = mtk_adsp_ipc_remove, };builtin_platform_driver (mtk_adsp_ipc_driver);
drivers/firmware/qemu_fw_cfg.c +1 -1
@@ -757,7 +757,7 @@ MODULE_DEVICE_TABLE(acpi, fw_cfg_sysfs_acpi_match);static struct platform_driver fw_cfg_sysfs_driver = { .probe = fw_cfg_sysfs_probe, - .remove_new = fw_cfg_sysfs_remove, + .remove = fw_cfg_sysfs_remove, .driver = { .name ="fw_cfg" , .of_match_table = fw_cfg_sysfs_mmio_match,
drivers/firmware/raspberrypi.c +1 -1
@@ -406,7 +406,7 @@ static struct platform_driver rpi_firmware_driver = { }, .probe = rpi_firmware_probe, .shutdown = rpi_firmware_shutdown, - .remove_new = rpi_firmware_remove, + .remove = rpi_firmware_remove, };module_platform_driver (rpi_firmware_driver);
drivers/firmware/stratix10-rsu.c +1 -1
@@ -802,7 +802,7 @@ static void stratix10_rsu_remove(struct platform_device *pdev)static struct platform_driver stratix10_rsu_driver = { .probe = stratix10_rsu_probe, - .remove_new = stratix10_rsu_remove, + .remove = stratix10_rsu_remove, .driver = { .name ="stratix10-rsu" , .dev_groups = rsu_groups,
drivers/firmware/stratix10-svc.c +1 -1
@@ -1271,7 +1271,7 @@ static void stratix10_svc_drv_remove(struct platform_device *pdev)static struct platform_driver stratix10_svc_driver = { .probe = stratix10_svc_drv_probe, - .remove_new = stratix10_svc_drv_remove, + .remove = stratix10_svc_drv_remove, .driver = { .name ="stratix10-svc" , .of_match_table = stratix10_svc_drv_match,
drivers/firmware/xilinx/zynqmp.c +1 -1
@@ -2118,6 +2118,6 @@ static struct platform_driver zynqmp_firmware_driver = { .dev_groups = zynqmp_firmware_groups, }, .probe = zynqmp_firmware_probe, - .remove_new = zynqmp_firmware_remove, + .remove = zynqmp_firmware_remove, };module_platform_driver (zynqmp_firmware_driver);
base-commit: 6d59cab07b8d74d0f0422b750038123334f6ecc2
Signature · 1 line
2.45.2
Quoted 13 lines · Uwe Kleine-König
After commit
0edb555a65d1("platform: Makeplatform_driver::remove()return void") .remove() is (again) the right callback to implement for platform drivers.Convert all platform drivers below
drivers/firmwareto use .remove(), with the eventual goal to drop structplatform_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 <[email protected]>---
Hello,
Quoted 8 lines
I did a single patch for all of
drivers/firmware. While I usually prefer to do one logical change per patch, this seems to be overengineering here as the individual changes are really trivial and shouldn't be much in the way for stable backports.There is no dedicated maintainer for
drivers/firmware, maybe Sudeep as biggest committer there can take it? Or would it be sensible to split this patch?
I'll just take it now, thanks!
greg k-h
This patch was applied to riscv/linux.git (fixes) by Greg Kroah-Hartman <[email protected]>:
Hello:
This patch was applied to riscv/linux.git (fixes) by Greg Kroah-Hartman <[email protected]>:
Quoted 10 lines · On Tue, 12 Nov 2024 09:35:20 +0100 you wrote:
After commit
0edb555a65d1("platform: Makeplatform_driver::remove()return void") .remove() is (again) the right callback to implement for platform drivers.Convert all platform drivers below
drivers/firmwareto use .remove(), with the eventual goal to drop structplatform_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.[...]
Here is the summary with links:
- firmware: Switch back to struct platform_driver::remove()
https://git.kernel.org/riscv/c/5770e9f237b6
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html