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

Configure Feed

Select the types of activity you want to include in your feed.

phy: 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/phy/ 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.

While touching these files, make indention of the struct initializer
consistent in several files.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20241009065307.504930-2-u.kleine-koenig@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Uwe Kleine-König and committed by
Vinod Koul
54234e3a 2ac03d08

+59 -59
+4 -4
drivers/phy/allwinner/phy-sun4i-usb.c
··· 1049 1049 MODULE_DEVICE_TABLE(of, sun4i_usb_phy_of_match); 1050 1050 1051 1051 static struct platform_driver sun4i_usb_phy_driver = { 1052 - .probe = sun4i_usb_phy_probe, 1053 - .remove_new = sun4i_usb_phy_remove, 1052 + .probe = sun4i_usb_phy_probe, 1053 + .remove = sun4i_usb_phy_remove, 1054 1054 .driver = { 1055 - .of_match_table = sun4i_usb_phy_of_match, 1056 - .name = "sun4i-usb-phy", 1055 + .of_match_table= sun4i_usb_phy_of_match, 1056 + .name = "sun4i-usb-phy", 1057 1057 } 1058 1058 }; 1059 1059 module_platform_driver(sun4i_usb_phy_driver);
+1 -1
drivers/phy/broadcom/phy-brcm-usb.c
··· 667 667 668 668 static struct platform_driver brcm_usb_driver = { 669 669 .probe = brcm_usb_phy_probe, 670 - .remove_new = brcm_usb_phy_remove, 670 + .remove = brcm_usb_phy_remove, 671 671 .driver = { 672 672 .name = "brcmstb-usb-phy", 673 673 .pm = &brcm_usb_phy_pm_ops,
+1 -1
drivers/phy/cadence/cdns-dphy.c
··· 472 472 473 473 static struct platform_driver cdns_dphy_platform_driver = { 474 474 .probe = cdns_dphy_probe, 475 - .remove_new = cdns_dphy_remove, 475 + .remove = cdns_dphy_remove, 476 476 .driver = { 477 477 .name = "cdns-mipi-dphy", 478 478 .of_match_table = cdns_dphy_of_match,
+1 -1
drivers/phy/cadence/phy-cadence-sierra.c
··· 2730 2730 2731 2731 static struct platform_driver cdns_sierra_driver = { 2732 2732 .probe = cdns_sierra_phy_probe, 2733 - .remove_new = cdns_sierra_phy_remove, 2733 + .remove = cdns_sierra_phy_remove, 2734 2734 .driver = { 2735 2735 .name = "cdns-sierra-phy", 2736 2736 .of_match_table = cdns_sierra_id_table,
+2 -2
drivers/phy/cadence/phy-cadence-torrent.c
··· 5440 5440 5441 5441 static struct platform_driver cdns_torrent_phy_driver = { 5442 5442 .probe = cdns_torrent_phy_probe, 5443 - .remove_new = cdns_torrent_phy_remove, 5444 - .driver = { 5443 + .remove = cdns_torrent_phy_remove, 5444 + .driver = { 5445 5445 .name = "cdns-torrent-phy", 5446 5446 .of_match_table = cdns_torrent_phy_of_match, 5447 5447 .pm = pm_sleep_ptr(&cdns_torrent_phy_pm_ops),
+3 -3
drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c
··· 433 433 MODULE_DEVICE_TABLE(of, mixel_lvds_phy_of_match); 434 434 435 435 static struct platform_driver mixel_lvds_phy_driver = { 436 - .probe = mixel_lvds_phy_probe, 437 - .remove_new = mixel_lvds_phy_remove, 436 + .probe = mixel_lvds_phy_probe, 437 + .remove = mixel_lvds_phy_remove, 438 438 .driver = { 439 439 .pm = &mixel_lvds_phy_pm_ops, 440 440 .name = "mixel-lvds-phy", 441 - .of_match_table = mixel_lvds_phy_of_match, 441 + .of_match_table = mixel_lvds_phy_of_match, 442 442 } 443 443 }; 444 444 module_platform_driver(mixel_lvds_phy_driver);
+3 -3
drivers/phy/freescale/phy-fsl-lynx-28g.c
··· 631 631 MODULE_DEVICE_TABLE(of, lynx_28g_of_match_table); 632 632 633 633 static struct platform_driver lynx_28g_driver = { 634 - .probe = lynx_28g_probe, 635 - .remove_new = lynx_28g_remove, 636 - .driver = { 634 + .probe = lynx_28g_probe, 635 + .remove = lynx_28g_remove, 636 + .driver = { 637 637 .name = "lynx-28g", 638 638 .of_match_table = lynx_28g_of_match_table, 639 639 },
+2 -2
drivers/phy/freescale/phy-fsl-samsung-hdmi.c
··· 749 749 MODULE_DEVICE_TABLE(of, fsl_samsung_hdmi_phy_of_match); 750 750 751 751 static struct platform_driver fsl_samsung_hdmi_phy_driver = { 752 - .probe = fsl_samsung_hdmi_phy_probe, 753 - .remove_new = fsl_samsung_hdmi_phy_remove, 752 + .probe = fsl_samsung_hdmi_phy_probe, 753 + .remove = fsl_samsung_hdmi_phy_remove, 754 754 .driver = { 755 755 .name = "fsl-samsung-hdmi-phy", 756 756 .of_match_table = fsl_samsung_hdmi_phy_of_match,
+1 -1
drivers/phy/intel/phy-intel-lgm-combo.c
··· 605 605 606 606 static struct platform_driver intel_cbphy_driver = { 607 607 .probe = intel_cbphy_probe, 608 - .remove_new = intel_cbphy_remove, 608 + .remove = intel_cbphy_remove, 609 609 .driver = { 610 610 .name = "intel-combo-phy", 611 611 .of_match_table = of_intel_cbphy_match,
+1 -1
drivers/phy/motorola/phy-cpcap-usb.c
··· 704 704 705 705 static struct platform_driver cpcap_usb_phy_driver = { 706 706 .probe = cpcap_usb_phy_probe, 707 - .remove_new = cpcap_usb_phy_remove, 707 + .remove = cpcap_usb_phy_remove, 708 708 .driver = { 709 709 .name = "cpcap-usb-phy", 710 710 .of_match_table = of_match_ptr(cpcap_usb_phy_id_table),
+1 -1
drivers/phy/motorola/phy-mapphone-mdm6600.c
··· 655 655 656 656 static struct platform_driver phy_mdm6600_driver = { 657 657 .probe = phy_mdm6600_probe, 658 - .remove_new = phy_mdm6600_remove, 658 + .remove = phy_mdm6600_remove, 659 659 .driver = { 660 660 .name = "phy-mapphone-mdm6600", 661 661 .pm = &phy_mdm6600_pm_ops,
+1 -1
drivers/phy/phy-lgm-usb.c
··· 271 271 .of_match_table = intel_usb_phy_dt_ids, 272 272 }, 273 273 .probe = phy_probe, 274 - .remove_new = phy_remove, 274 + .remove = phy_remove, 275 275 }; 276 276 277 277 module_platform_driver(lgm_phy_driver);
+5 -5
drivers/phy/qualcomm/phy-qcom-apq8064-sata.c
··· 257 257 MODULE_DEVICE_TABLE(of, qcom_apq8064_sata_phy_of_match); 258 258 259 259 static struct platform_driver qcom_apq8064_sata_phy_driver = { 260 - .probe = qcom_apq8064_sata_phy_probe, 261 - .remove_new = qcom_apq8064_sata_phy_remove, 260 + .probe = qcom_apq8064_sata_phy_probe, 261 + .remove = qcom_apq8064_sata_phy_remove, 262 262 .driver = { 263 - .name = "qcom-apq8064-sata-phy", 264 - .of_match_table = qcom_apq8064_sata_phy_of_match, 265 - } 263 + .name = "qcom-apq8064-sata-phy", 264 + .of_match_table = qcom_apq8064_sata_phy_of_match, 265 + }, 266 266 }; 267 267 module_platform_driver(qcom_apq8064_sata_phy_driver); 268 268
+1 -1
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c
··· 294 294 295 295 static struct platform_driver eusb2_repeater_driver = { 296 296 .probe = eusb2_repeater_probe, 297 - .remove_new = eusb2_repeater_remove, 297 + .remove = eusb2_repeater_remove, 298 298 .driver = { 299 299 .name = "qcom-eusb2-repeater", 300 300 .of_match_table = eusb2_repeater_of_match_table,
+4 -4
drivers/phy/qualcomm/phy-qcom-ipq806x-sata.c
··· 184 184 MODULE_DEVICE_TABLE(of, qcom_ipq806x_sata_phy_of_match); 185 185 186 186 static struct platform_driver qcom_ipq806x_sata_phy_driver = { 187 - .probe = qcom_ipq806x_sata_phy_probe, 188 - .remove_new = qcom_ipq806x_sata_phy_remove, 187 + .probe = qcom_ipq806x_sata_phy_probe, 188 + .remove = qcom_ipq806x_sata_phy_remove, 189 189 .driver = { 190 - .name = "qcom-ipq806x-sata-phy", 191 - .of_match_table = qcom_ipq806x_sata_phy_of_match, 190 + .name = "qcom-ipq806x-sata-phy", 191 + .of_match_table = qcom_ipq806x_sata_phy_of_match, 192 192 } 193 193 }; 194 194 module_platform_driver(qcom_ipq806x_sata_phy_driver);
+1 -1
drivers/phy/realtek/phy-rtk-usb2.c
··· 1298 1298 1299 1299 static struct platform_driver rtk_usb2phy_driver = { 1300 1300 .probe = rtk_usb2phy_probe, 1301 - .remove_new = rtk_usb2phy_remove, 1301 + .remove = rtk_usb2phy_remove, 1302 1302 .driver = { 1303 1303 .name = "rtk-usb2phy", 1304 1304 .of_match_table = usbphy_rtk_dt_match,
+1 -1
drivers/phy/realtek/phy-rtk-usb3.c
··· 734 734 735 735 static struct platform_driver rtk_usb3phy_driver = { 736 736 .probe = rtk_usb3phy_probe, 737 - .remove_new = rtk_usb3phy_remove, 737 + .remove = rtk_usb3phy_remove, 738 738 .driver = { 739 739 .name = "rtk-usb3phy", 740 740 .of_match_table = usbphy_rtk_dt_match,
+4 -4
drivers/phy/renesas/phy-rcar-gen3-pcie.c
··· 132 132 133 133 static struct platform_driver rcar_gen3_phy_driver = { 134 134 .driver = { 135 - .name = "phy_rcar_gen3_pcie", 136 - .of_match_table = rcar_gen3_phy_pcie_match_table, 135 + .name = "phy_rcar_gen3_pcie", 136 + .of_match_table = rcar_gen3_phy_pcie_match_table, 137 137 }, 138 - .probe = rcar_gen3_phy_pcie_probe, 139 - .remove_new = rcar_gen3_phy_pcie_remove, 138 + .probe = rcar_gen3_phy_pcie_probe, 139 + .remove = rcar_gen3_phy_pcie_remove, 140 140 }; 141 141 142 142 module_platform_driver(rcar_gen3_phy_driver);
+1 -1
drivers/phy/renesas/phy-rcar-gen3-usb2.c
··· 825 825 .of_match_table = rcar_gen3_phy_usb2_match_table, 826 826 }, 827 827 .probe = rcar_gen3_phy_usb2_probe, 828 - .remove_new = rcar_gen3_phy_usb2_remove, 828 + .remove = rcar_gen3_phy_usb2_remove, 829 829 }; 830 830 module_platform_driver(rcar_gen3_phy_usb2_driver); 831 831
+4 -4
drivers/phy/renesas/phy-rcar-gen3-usb3.c
··· 206 206 207 207 static struct platform_driver rcar_gen3_phy_usb3_driver = { 208 208 .driver = { 209 - .name = "phy_rcar_gen3_usb3", 210 - .of_match_table = rcar_gen3_phy_usb3_match_table, 209 + .name = "phy_rcar_gen3_usb3", 210 + .of_match_table = rcar_gen3_phy_usb3_match_table, 211 211 }, 212 - .probe = rcar_gen3_phy_usb3_probe, 213 - .remove_new = rcar_gen3_phy_usb3_remove, 212 + .probe = rcar_gen3_phy_usb3_probe, 213 + .remove = rcar_gen3_phy_usb3_remove, 214 214 }; 215 215 module_platform_driver(rcar_gen3_phy_usb3_driver); 216 216
+1 -1
drivers/phy/renesas/r8a779f0-ether-serdes.c
··· 404 404 405 405 static struct platform_driver r8a779f0_eth_serdes_driver_platform = { 406 406 .probe = r8a779f0_eth_serdes_probe, 407 - .remove_new = r8a779f0_eth_serdes_remove, 407 + .remove = r8a779f0_eth_serdes_remove, 408 408 .driver = { 409 409 .name = "r8a779f0_eth_serdes", 410 410 .of_match_table = r8a779f0_eth_serdes_of_table,
+1 -1
drivers/phy/rockchip/phy-rockchip-inno-csidphy.c
··· 472 472 .of_match_table = rockchip_inno_csidphy_match_id, 473 473 }, 474 474 .probe = rockchip_inno_csidphy_probe, 475 - .remove_new = rockchip_inno_csidphy_remove, 475 + .remove = rockchip_inno_csidphy_remove, 476 476 }; 477 477 478 478 module_platform_driver(rockchip_inno_csidphy_driver);
+1 -1
drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c
··· 784 784 .of_match_table = of_match_ptr(inno_dsidphy_of_match), 785 785 }, 786 786 .probe = inno_dsidphy_probe, 787 - .remove_new = inno_dsidphy_remove, 787 + .remove = inno_dsidphy_remove, 788 788 }; 789 789 module_platform_driver(inno_dsidphy_driver); 790 790
+2 -2
drivers/phy/rockchip/phy-rockchip-inno-hdmi.c
··· 1424 1424 MODULE_DEVICE_TABLE(of, inno_hdmi_phy_of_match); 1425 1425 1426 1426 static struct platform_driver inno_hdmi_phy_driver = { 1427 - .probe = inno_hdmi_phy_probe, 1428 - .remove_new = inno_hdmi_phy_remove, 1427 + .probe = inno_hdmi_phy_probe, 1428 + .remove = inno_hdmi_phy_remove, 1429 1429 .driver = { 1430 1430 .name = "inno-hdmi-phy", 1431 1431 .of_match_table = inno_hdmi_phy_of_match,
+1 -1
drivers/phy/rockchip/phy-rockchip-typec.c
··· 1210 1210 1211 1211 static struct platform_driver rockchip_typec_phy_driver = { 1212 1212 .probe = rockchip_typec_phy_probe, 1213 - .remove_new = rockchip_typec_phy_remove, 1213 + .remove = rockchip_typec_phy_remove, 1214 1214 .driver = { 1215 1215 .name = "rockchip-typec-phy", 1216 1216 .of_match_table = rockchip_typec_phy_dt_ids,
+1 -1
drivers/phy/st/phy-stm32-usbphyc.c
··· 812 812 813 813 static struct platform_driver stm32_usbphyc_driver = { 814 814 .probe = stm32_usbphyc_probe, 815 - .remove_new = stm32_usbphyc_remove, 815 + .remove = stm32_usbphyc_remove, 816 816 .driver = { 817 817 .of_match_table = stm32_usbphyc_of_match, 818 818 .name = "stm32-usbphyc",
+1 -1
drivers/phy/tegra/xusb.c
··· 1325 1325 .pm = &tegra_xusb_padctl_pm_ops, 1326 1326 }, 1327 1327 .probe = tegra_xusb_padctl_probe, 1328 - .remove_new = tegra_xusb_padctl_remove, 1328 + .remove = tegra_xusb_padctl_remove, 1329 1329 }; 1330 1330 module_platform_driver(tegra_xusb_padctl_driver); 1331 1331
+1 -1
drivers/phy/ti/phy-am654-serdes.c
··· 837 837 838 838 static struct platform_driver serdes_am654_driver = { 839 839 .probe = serdes_am654_probe, 840 - .remove_new = serdes_am654_remove, 840 + .remove = serdes_am654_remove, 841 841 .driver = { 842 842 .name = "phy-am654", 843 843 .of_match_table = serdes_am654_id_table,
+2 -2
drivers/phy/ti/phy-da8xx-usb.c
··· 277 277 278 278 static struct platform_driver da8xx_usb_phy_driver = { 279 279 .probe = da8xx_usb_phy_probe, 280 - .remove_new = da8xx_usb_phy_remove, 280 + .remove = da8xx_usb_phy_remove, 281 281 .driver = { 282 282 .name = "da8xx-usb-phy", 283 283 .pm = &da8xx_usb_phy_pm_ops, 284 - .of_match_table = da8xx_usb_phy_ids, 284 + .of_match_table = da8xx_usb_phy_ids, 285 285 }, 286 286 }; 287 287
+1 -1
drivers/phy/ti/phy-dm816x-usb.c
··· 259 259 260 260 static struct platform_driver dm816x_usb_phy_driver = { 261 261 .probe = dm816x_usb_phy_probe, 262 - .remove_new = dm816x_usb_phy_remove, 262 + .remove = dm816x_usb_phy_remove, 263 263 .driver = { 264 264 .name = "dm816x-usb-phy", 265 265 .pm = &dm816x_usb_phy_pm_ops,
+1 -1
drivers/phy/ti/phy-j721e-wiz.c
··· 1685 1685 1686 1686 static struct platform_driver wiz_driver = { 1687 1687 .probe = wiz_probe, 1688 - .remove_new = wiz_remove, 1688 + .remove = wiz_remove, 1689 1689 .driver = { 1690 1690 .name = "wiz", 1691 1691 .of_match_table = wiz_id_table,
+1 -1
drivers/phy/ti/phy-omap-usb2.c
··· 511 511 512 512 static struct platform_driver omap_usb2_driver = { 513 513 .probe = omap_usb2_probe, 514 - .remove_new = omap_usb2_remove, 514 + .remove = omap_usb2_remove, 515 515 .driver = { 516 516 .name = "omap-usb2", 517 517 .of_match_table = omap_usb2_id_table,
+1 -1
drivers/phy/ti/phy-ti-pipe3.c
··· 920 920 921 921 static struct platform_driver ti_pipe3_driver = { 922 922 .probe = ti_pipe3_probe, 923 - .remove_new = ti_pipe3_remove, 923 + .remove = ti_pipe3_remove, 924 924 .driver = { 925 925 .name = "ti-pipe3", 926 926 .of_match_table = ti_pipe3_id_table,
+1 -1
drivers/phy/ti/phy-twl4030-usb.c
··· 834 834 835 835 static struct platform_driver twl4030_usb_driver = { 836 836 .probe = twl4030_usb_probe, 837 - .remove_new = twl4030_usb_remove, 837 + .remove = twl4030_usb_remove, 838 838 .driver = { 839 839 .name = "twl4030_usb", 840 840 .pm = &twl4030_usb_pm_ops,
+1 -1
drivers/phy/xilinx/phy-zynqmp.c
··· 1071 1071 1072 1072 static struct platform_driver xpsgtr_driver = { 1073 1073 .probe = xpsgtr_probe, 1074 - .remove_new = xpsgtr_remove, 1074 + .remove = xpsgtr_remove, 1075 1075 .driver = { 1076 1076 .name = "xilinx-psgtr", 1077 1077 .of_match_table = xpsgtr_of_match,