Commit 845fd2cb authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Will Deacon
Browse files

perf: 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/perf 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/20241027180313.410964-2-u.kleine-koenig@baylibre.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 9643aaa1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -782,7 +782,7 @@ static struct platform_driver ali_drw_pmu_driver = {
		   .acpi_match_table = ali_drw_acpi_match,
		   },
	.probe = ali_drw_pmu_probe,
	.remove_new = ali_drw_pmu_remove,
	.remove = ali_drw_pmu_remove,
};

static int __init ali_drw_pmu_init(void)
+1 −1
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ MODULE_DEVICE_TABLE(of, meson_ddr_pmu_dt_match);

static struct platform_driver g12_ddr_pmu_driver = {
	.probe = g12_ddr_pmu_probe,
	.remove_new = g12_ddr_pmu_remove,
	.remove = g12_ddr_pmu_remove,

	.driver = {
		.name = "meson-g12-ddr-pmu",
+1 −1
Original line number Diff line number Diff line
@@ -1705,7 +1705,7 @@ static struct platform_driver cci_pmu_driver = {
		   .suppress_bind_attrs = true,
		  },
	.probe = cci_pmu_probe,
	.remove_new = cci_pmu_remove,
	.remove = cci_pmu_remove,
};

module_platform_driver(cci_pmu_driver);
+1 −1
Original line number Diff line number Diff line
@@ -1529,7 +1529,7 @@ static struct platform_driver arm_ccn_driver = {
		.suppress_bind_attrs = true,
	},
	.probe = arm_ccn_probe,
	.remove_new = arm_ccn_remove,
	.remove = arm_ccn_remove,
};

static int __init arm_ccn_init(void)
+1 −1
Original line number Diff line number Diff line
@@ -2662,7 +2662,7 @@ static struct platform_driver arm_cmn_driver = {
		.acpi_match_table = ACPI_PTR(arm_cmn_acpi_match),
	},
	.probe = arm_cmn_probe,
	.remove_new = arm_cmn_remove,
	.remove = arm_cmn_remove,
};

static int __init arm_cmn_init(void)
Loading