perf: 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/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: Uwe 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: Will Deacon <will@kernel.org>
This commit is contained in:
Uwe Kleine-König
2024-10-27 19:03:14 +01:00
committed by Will Deacon
parent 9643aaa194
commit 845fd2cbed
23 changed files with 23 additions and 23 deletions

View File

@@ -782,7 +782,7 @@ static struct platform_driver ali_drw_pmu_driver = {
.acpi_match_table = ali_drw_acpi_match, .acpi_match_table = ali_drw_acpi_match,
}, },
.probe = ali_drw_pmu_probe, .probe = ali_drw_pmu_probe,
.remove_new = ali_drw_pmu_remove, .remove = ali_drw_pmu_remove,
}; };
static int __init ali_drw_pmu_init(void) static int __init ali_drw_pmu_init(void)

View File

@@ -379,7 +379,7 @@ MODULE_DEVICE_TABLE(of, meson_ddr_pmu_dt_match);
static struct platform_driver g12_ddr_pmu_driver = { static struct platform_driver g12_ddr_pmu_driver = {
.probe = g12_ddr_pmu_probe, .probe = g12_ddr_pmu_probe,
.remove_new = g12_ddr_pmu_remove, .remove = g12_ddr_pmu_remove,
.driver = { .driver = {
.name = "meson-g12-ddr-pmu", .name = "meson-g12-ddr-pmu",

View File

@@ -1705,7 +1705,7 @@ static struct platform_driver cci_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = cci_pmu_probe, .probe = cci_pmu_probe,
.remove_new = cci_pmu_remove, .remove = cci_pmu_remove,
}; };
module_platform_driver(cci_pmu_driver); module_platform_driver(cci_pmu_driver);

View File

@@ -1529,7 +1529,7 @@ static struct platform_driver arm_ccn_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = arm_ccn_probe, .probe = arm_ccn_probe,
.remove_new = arm_ccn_remove, .remove = arm_ccn_remove,
}; };
static int __init arm_ccn_init(void) static int __init arm_ccn_init(void)

View File

@@ -2662,7 +2662,7 @@ static struct platform_driver arm_cmn_driver = {
.acpi_match_table = ACPI_PTR(arm_cmn_acpi_match), .acpi_match_table = ACPI_PTR(arm_cmn_acpi_match),
}, },
.probe = arm_cmn_probe, .probe = arm_cmn_probe,
.remove_new = arm_cmn_remove, .remove = arm_cmn_remove,
}; };
static int __init arm_cmn_init(void) static int __init arm_cmn_init(void)

View File

@@ -1282,7 +1282,7 @@ static struct platform_driver arm_cspmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = arm_cspmu_device_probe, .probe = arm_cspmu_device_probe,
.remove_new = arm_cspmu_device_remove, .remove = arm_cspmu_device_remove,
.id_table = arm_cspmu_id, .id_table = arm_cspmu_id,
}; };

View File

@@ -750,7 +750,7 @@ static struct platform_driver dmc620_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = dmc620_pmu_device_probe, .probe = dmc620_pmu_device_probe,
.remove_new = dmc620_pmu_device_remove, .remove = dmc620_pmu_device_remove,
}; };
static int __init dmc620_pmu_init(void) static int __init dmc620_pmu_init(void)

View File

@@ -787,7 +787,7 @@ static struct platform_driver dsu_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = dsu_pmu_device_probe, .probe = dsu_pmu_device_probe,
.remove_new = dsu_pmu_device_remove, .remove = dsu_pmu_device_remove,
}; };
static int dsu_pmu_cpu_online(unsigned int cpu, struct hlist_node *node) static int dsu_pmu_cpu_online(unsigned int cpu, struct hlist_node *node)

View File

@@ -996,7 +996,7 @@ static struct platform_driver smmu_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = smmu_pmu_probe, .probe = smmu_pmu_probe,
.remove_new = smmu_pmu_remove, .remove = smmu_pmu_remove,
.shutdown = smmu_pmu_shutdown, .shutdown = smmu_pmu_shutdown,
}; };

View File

@@ -1280,7 +1280,7 @@ static struct platform_driver arm_spe_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = arm_spe_pmu_device_probe, .probe = arm_spe_pmu_device_probe,
.remove_new = arm_spe_pmu_device_remove, .remove = arm_spe_pmu_device_remove,
}; };
static int __init arm_spe_pmu_init(void) static int __init arm_spe_pmu_init(void)

View File

@@ -846,7 +846,7 @@ static struct platform_driver imx_ddr_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = ddr_perf_probe, .probe = ddr_perf_probe,
.remove_new = ddr_perf_remove, .remove = ddr_perf_remove,
}; };
module_platform_driver(imx_ddr_pmu_driver); module_platform_driver(imx_ddr_pmu_driver);

View File

@@ -853,7 +853,7 @@ static struct platform_driver imx_ddr_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = ddr_perf_probe, .probe = ddr_perf_probe,
.remove_new = ddr_perf_remove, .remove = ddr_perf_remove,
}; };
module_platform_driver(imx_ddr_pmu_driver); module_platform_driver(imx_ddr_pmu_driver);

View File

@@ -358,7 +358,7 @@ static struct platform_driver hisi_cpa_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = hisi_cpa_pmu_probe, .probe = hisi_cpa_pmu_probe,
.remove_new = hisi_cpa_pmu_remove, .remove = hisi_cpa_pmu_remove,
}; };
static int __init hisi_cpa_pmu_module_init(void) static int __init hisi_cpa_pmu_module_init(void)

View File

@@ -547,7 +547,7 @@ static struct platform_driver hisi_ddrc_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = hisi_ddrc_pmu_probe, .probe = hisi_ddrc_pmu_probe,
.remove_new = hisi_ddrc_pmu_remove, .remove = hisi_ddrc_pmu_remove,
}; };
static int __init hisi_ddrc_pmu_module_init(void) static int __init hisi_ddrc_pmu_module_init(void)

View File

@@ -550,7 +550,7 @@ static struct platform_driver hisi_hha_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = hisi_hha_pmu_probe, .probe = hisi_hha_pmu_probe,
.remove_new = hisi_hha_pmu_remove, .remove = hisi_hha_pmu_remove,
}; };
static int __init hisi_hha_pmu_module_init(void) static int __init hisi_hha_pmu_module_init(void)

View File

@@ -584,7 +584,7 @@ static struct platform_driver hisi_l3c_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = hisi_l3c_pmu_probe, .probe = hisi_l3c_pmu_probe,
.remove_new = hisi_l3c_pmu_remove, .remove = hisi_l3c_pmu_remove,
}; };
static int __init hisi_l3c_pmu_module_init(void) static int __init hisi_l3c_pmu_module_init(void)

View File

@@ -538,7 +538,7 @@ static struct platform_driver hisi_pa_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = hisi_pa_pmu_probe, .probe = hisi_pa_pmu_probe,
.remove_new = hisi_pa_pmu_remove, .remove = hisi_pa_pmu_remove,
}; };
static int __init hisi_pa_pmu_module_init(void) static int __init hisi_pa_pmu_module_init(void)

View File

@@ -476,7 +476,7 @@ static struct platform_driver hisi_sllc_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = hisi_sllc_pmu_probe, .probe = hisi_sllc_pmu_probe,
.remove_new = hisi_sllc_pmu_remove, .remove = hisi_sllc_pmu_remove,
}; };
static int __init hisi_sllc_pmu_module_init(void) static int __init hisi_sllc_pmu_module_init(void)

View File

@@ -732,7 +732,7 @@ static struct platform_driver cn10k_ddr_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = cn10k_ddr_perf_probe, .probe = cn10k_ddr_perf_probe,
.remove_new = cn10k_ddr_perf_remove, .remove = cn10k_ddr_perf_remove,
}; };
static int __init cn10k_ddr_pmu_init(void) static int __init cn10k_ddr_pmu_init(void)

View File

@@ -383,7 +383,7 @@ static struct platform_driver tad_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = tad_pmu_probe, .probe = tad_pmu_probe,
.remove_new = tad_pmu_remove, .remove = tad_pmu_remove,
}; };
static int tad_pmu_offline_cpu(unsigned int cpu, struct hlist_node *node) static int tad_pmu_offline_cpu(unsigned int cpu, struct hlist_node *node)

View File

@@ -981,7 +981,7 @@ static struct platform_driver l2_cache_pmu_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = l2_cache_pmu_probe, .probe = l2_cache_pmu_probe,
.remove_new = l2_cache_pmu_remove, .remove = l2_cache_pmu_remove,
}; };
static int __init register_l2_cache_pmu_driver(void) static int __init register_l2_cache_pmu_driver(void)

View File

@@ -1010,7 +1010,7 @@ static struct platform_driver tx2_uncore_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = tx2_uncore_probe, .probe = tx2_uncore_probe,
.remove_new = tx2_uncore_remove, .remove = tx2_uncore_remove,
}; };
static int __init tx2_uncore_driver_init(void) static int __init tx2_uncore_driver_init(void)

View File

@@ -1943,7 +1943,7 @@ static void xgene_pmu_remove(struct platform_device *pdev)
static struct platform_driver xgene_pmu_driver = { static struct platform_driver xgene_pmu_driver = {
.probe = xgene_pmu_probe, .probe = xgene_pmu_probe,
.remove_new = xgene_pmu_remove, .remove = xgene_pmu_remove,
.driver = { .driver = {
.name = "xgene-pmu", .name = "xgene-pmu",
.of_match_table = xgene_pmu_of_match, .of_match_table = xgene_pmu_of_match,