Commit 5770e9f2 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Greg Kroah-Hartman
Browse files

firmware: Switch back to struct platform_driver::remove()



After commit 0edb555a ("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.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/36974feb6035201d53384557259ec72fe311053b.1731397962.git.u.kleine-koenig@baylibre.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 40e210a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3321,7 +3321,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)
+1 −1
Original line number Diff line number Diff line
@@ -1046,7 +1046,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);

+1 −1
Original line number Diff line number Diff line
@@ -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),
+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -486,7 +486,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);

Loading