Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf: 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/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>

authored by

Uwe Kleine-König and committed by
Will Deacon
845fd2cb 9643aaa1

+23 -23
+1 -1
drivers/perf/alibaba_uncore_drw_pmu.c
··· 782 782 .acpi_match_table = ali_drw_acpi_match, 783 783 }, 784 784 .probe = ali_drw_pmu_probe, 785 - .remove_new = ali_drw_pmu_remove, 785 + .remove = ali_drw_pmu_remove, 786 786 }; 787 787 788 788 static int __init ali_drw_pmu_init(void)
+1 -1
drivers/perf/amlogic/meson_g12_ddr_pmu.c
··· 379 379 380 380 static struct platform_driver g12_ddr_pmu_driver = { 381 381 .probe = g12_ddr_pmu_probe, 382 - .remove_new = g12_ddr_pmu_remove, 382 + .remove = g12_ddr_pmu_remove, 383 383 384 384 .driver = { 385 385 .name = "meson-g12-ddr-pmu",
+1 -1
drivers/perf/arm-cci.c
··· 1705 1705 .suppress_bind_attrs = true, 1706 1706 }, 1707 1707 .probe = cci_pmu_probe, 1708 - .remove_new = cci_pmu_remove, 1708 + .remove = cci_pmu_remove, 1709 1709 }; 1710 1710 1711 1711 module_platform_driver(cci_pmu_driver);
+1 -1
drivers/perf/arm-ccn.c
··· 1529 1529 .suppress_bind_attrs = true, 1530 1530 }, 1531 1531 .probe = arm_ccn_probe, 1532 - .remove_new = arm_ccn_remove, 1532 + .remove = arm_ccn_remove, 1533 1533 }; 1534 1534 1535 1535 static int __init arm_ccn_init(void)
+1 -1
drivers/perf/arm-cmn.c
··· 2662 2662 .acpi_match_table = ACPI_PTR(arm_cmn_acpi_match), 2663 2663 }, 2664 2664 .probe = arm_cmn_probe, 2665 - .remove_new = arm_cmn_remove, 2665 + .remove = arm_cmn_remove, 2666 2666 }; 2667 2667 2668 2668 static int __init arm_cmn_init(void)
+1 -1
drivers/perf/arm_cspmu/arm_cspmu.c
··· 1282 1282 .suppress_bind_attrs = true, 1283 1283 }, 1284 1284 .probe = arm_cspmu_device_probe, 1285 - .remove_new = arm_cspmu_device_remove, 1285 + .remove = arm_cspmu_device_remove, 1286 1286 .id_table = arm_cspmu_id, 1287 1287 }; 1288 1288
+1 -1
drivers/perf/arm_dmc620_pmu.c
··· 750 750 .suppress_bind_attrs = true, 751 751 }, 752 752 .probe = dmc620_pmu_device_probe, 753 - .remove_new = dmc620_pmu_device_remove, 753 + .remove = dmc620_pmu_device_remove, 754 754 }; 755 755 756 756 static int __init dmc620_pmu_init(void)
+1 -1
drivers/perf/arm_dsu_pmu.c
··· 787 787 .suppress_bind_attrs = true, 788 788 }, 789 789 .probe = dsu_pmu_device_probe, 790 - .remove_new = dsu_pmu_device_remove, 790 + .remove = dsu_pmu_device_remove, 791 791 }; 792 792 793 793 static int dsu_pmu_cpu_online(unsigned int cpu, struct hlist_node *node)
+1 -1
drivers/perf/arm_smmuv3_pmu.c
··· 996 996 .suppress_bind_attrs = true, 997 997 }, 998 998 .probe = smmu_pmu_probe, 999 - .remove_new = smmu_pmu_remove, 999 + .remove = smmu_pmu_remove, 1000 1000 .shutdown = smmu_pmu_shutdown, 1001 1001 }; 1002 1002
+1 -1
drivers/perf/arm_spe_pmu.c
··· 1280 1280 .suppress_bind_attrs = true, 1281 1281 }, 1282 1282 .probe = arm_spe_pmu_device_probe, 1283 - .remove_new = arm_spe_pmu_device_remove, 1283 + .remove = arm_spe_pmu_device_remove, 1284 1284 }; 1285 1285 1286 1286 static int __init arm_spe_pmu_init(void)
+1 -1
drivers/perf/fsl_imx8_ddr_perf.c
··· 846 846 .suppress_bind_attrs = true, 847 847 }, 848 848 .probe = ddr_perf_probe, 849 - .remove_new = ddr_perf_remove, 849 + .remove = ddr_perf_remove, 850 850 }; 851 851 852 852 module_platform_driver(imx_ddr_pmu_driver);
+1 -1
drivers/perf/fsl_imx9_ddr_perf.c
··· 853 853 .suppress_bind_attrs = true, 854 854 }, 855 855 .probe = ddr_perf_probe, 856 - .remove_new = ddr_perf_remove, 856 + .remove = ddr_perf_remove, 857 857 }; 858 858 module_platform_driver(imx_ddr_pmu_driver); 859 859
+1 -1
drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c
··· 358 358 .suppress_bind_attrs = true, 359 359 }, 360 360 .probe = hisi_cpa_pmu_probe, 361 - .remove_new = hisi_cpa_pmu_remove, 361 + .remove = hisi_cpa_pmu_remove, 362 362 }; 363 363 364 364 static int __init hisi_cpa_pmu_module_init(void)
+1 -1
drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c
··· 547 547 .suppress_bind_attrs = true, 548 548 }, 549 549 .probe = hisi_ddrc_pmu_probe, 550 - .remove_new = hisi_ddrc_pmu_remove, 550 + .remove = hisi_ddrc_pmu_remove, 551 551 }; 552 552 553 553 static int __init hisi_ddrc_pmu_module_init(void)
+1 -1
drivers/perf/hisilicon/hisi_uncore_hha_pmu.c
··· 550 550 .suppress_bind_attrs = true, 551 551 }, 552 552 .probe = hisi_hha_pmu_probe, 553 - .remove_new = hisi_hha_pmu_remove, 553 + .remove = hisi_hha_pmu_remove, 554 554 }; 555 555 556 556 static int __init hisi_hha_pmu_module_init(void)
+1 -1
drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c
··· 584 584 .suppress_bind_attrs = true, 585 585 }, 586 586 .probe = hisi_l3c_pmu_probe, 587 - .remove_new = hisi_l3c_pmu_remove, 587 + .remove = hisi_l3c_pmu_remove, 588 588 }; 589 589 590 590 static int __init hisi_l3c_pmu_module_init(void)
+1 -1
drivers/perf/hisilicon/hisi_uncore_pa_pmu.c
··· 538 538 .suppress_bind_attrs = true, 539 539 }, 540 540 .probe = hisi_pa_pmu_probe, 541 - .remove_new = hisi_pa_pmu_remove, 541 + .remove = hisi_pa_pmu_remove, 542 542 }; 543 543 544 544 static int __init hisi_pa_pmu_module_init(void)
+1 -1
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
··· 476 476 .suppress_bind_attrs = true, 477 477 }, 478 478 .probe = hisi_sllc_pmu_probe, 479 - .remove_new = hisi_sllc_pmu_remove, 479 + .remove = hisi_sllc_pmu_remove, 480 480 }; 481 481 482 482 static int __init hisi_sllc_pmu_module_init(void)
+1 -1
drivers/perf/marvell_cn10k_ddr_pmu.c
··· 732 732 .suppress_bind_attrs = true, 733 733 }, 734 734 .probe = cn10k_ddr_perf_probe, 735 - .remove_new = cn10k_ddr_perf_remove, 735 + .remove = cn10k_ddr_perf_remove, 736 736 }; 737 737 738 738 static int __init cn10k_ddr_pmu_init(void)
+1 -1
drivers/perf/marvell_cn10k_tad_pmu.c
··· 383 383 .suppress_bind_attrs = true, 384 384 }, 385 385 .probe = tad_pmu_probe, 386 - .remove_new = tad_pmu_remove, 386 + .remove = tad_pmu_remove, 387 387 }; 388 388 389 389 static int tad_pmu_offline_cpu(unsigned int cpu, struct hlist_node *node)
+1 -1
drivers/perf/qcom_l2_pmu.c
··· 981 981 .suppress_bind_attrs = true, 982 982 }, 983 983 .probe = l2_cache_pmu_probe, 984 - .remove_new = l2_cache_pmu_remove, 984 + .remove = l2_cache_pmu_remove, 985 985 }; 986 986 987 987 static int __init register_l2_cache_pmu_driver(void)
+1 -1
drivers/perf/thunderx2_pmu.c
··· 1010 1010 .suppress_bind_attrs = true, 1011 1011 }, 1012 1012 .probe = tx2_uncore_probe, 1013 - .remove_new = tx2_uncore_remove, 1013 + .remove = tx2_uncore_remove, 1014 1014 }; 1015 1015 1016 1016 static int __init tx2_uncore_driver_init(void)
+1 -1
drivers/perf/xgene_pmu.c
··· 1943 1943 1944 1944 static struct platform_driver xgene_pmu_driver = { 1945 1945 .probe = xgene_pmu_probe, 1946 - .remove_new = xgene_pmu_remove, 1946 + .remove = xgene_pmu_remove, 1947 1947 .driver = { 1948 1948 .name = "xgene-pmu", 1949 1949 .of_match_table = xgene_pmu_of_match,