Skip to content

Commit 54234e3

Browse files
ukleinekvinodkoul
authored andcommitted
phy: Switch back to struct platform_driver::remove()
After commit 0edb555 ("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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 2ac03d0 commit 54234e3

35 files changed

+59
-59
lines changed

drivers/phy/allwinner/phy-sun4i-usb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,11 +1049,11 @@ static const struct of_device_id sun4i_usb_phy_of_match[] = {
10491049
MODULE_DEVICE_TABLE(of, sun4i_usb_phy_of_match);
10501050

10511051
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,
10541054
.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",
10571057
}
10581058
};
10591059
module_platform_driver(sun4i_usb_phy_driver);

drivers/phy/broadcom/phy-brcm-usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ MODULE_DEVICE_TABLE(of, brcm_usb_dt_ids);
667667

668668
static struct platform_driver brcm_usb_driver = {
669669
.probe = brcm_usb_phy_probe,
670-
.remove_new = brcm_usb_phy_remove,
670+
.remove = brcm_usb_phy_remove,
671671
.driver = {
672672
.name = "brcmstb-usb-phy",
673673
.pm = &brcm_usb_phy_pm_ops,

drivers/phy/cadence/cdns-dphy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ MODULE_DEVICE_TABLE(of, cdns_dphy_of_match);
472472

473473
static struct platform_driver cdns_dphy_platform_driver = {
474474
.probe = cdns_dphy_probe,
475-
.remove_new = cdns_dphy_remove,
475+
.remove = cdns_dphy_remove,
476476
.driver = {
477477
.name = "cdns-mipi-dphy",
478478
.of_match_table = cdns_dphy_of_match,

drivers/phy/cadence/phy-cadence-sierra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2730,7 +2730,7 @@ MODULE_DEVICE_TABLE(of, cdns_sierra_id_table);
27302730

27312731
static struct platform_driver cdns_sierra_driver = {
27322732
.probe = cdns_sierra_phy_probe,
2733-
.remove_new = cdns_sierra_phy_remove,
2733+
.remove = cdns_sierra_phy_remove,
27342734
.driver = {
27352735
.name = "cdns-sierra-phy",
27362736
.of_match_table = cdns_sierra_id_table,

drivers/phy/cadence/phy-cadence-torrent.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5440,8 +5440,8 @@ MODULE_DEVICE_TABLE(of, cdns_torrent_phy_of_match);
54405440

54415441
static struct platform_driver cdns_torrent_phy_driver = {
54425442
.probe = cdns_torrent_phy_probe,
5443-
.remove_new = cdns_torrent_phy_remove,
5444-
.driver = {
5443+
.remove = cdns_torrent_phy_remove,
5444+
.driver = {
54455445
.name = "cdns-torrent-phy",
54465446
.of_match_table = cdns_torrent_phy_of_match,
54475447
.pm = pm_sleep_ptr(&cdns_torrent_phy_pm_ops),

drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,12 @@ static const struct of_device_id mixel_lvds_phy_of_match[] = {
433433
MODULE_DEVICE_TABLE(of, mixel_lvds_phy_of_match);
434434

435435
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,
438438
.driver = {
439439
.pm = &mixel_lvds_phy_pm_ops,
440440
.name = "mixel-lvds-phy",
441-
.of_match_table = mixel_lvds_phy_of_match,
441+
.of_match_table = mixel_lvds_phy_of_match,
442442
}
443443
};
444444
module_platform_driver(mixel_lvds_phy_driver);

drivers/phy/freescale/phy-fsl-lynx-28g.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,9 +631,9 @@ static const struct of_device_id lynx_28g_of_match_table[] = {
631631
MODULE_DEVICE_TABLE(of, lynx_28g_of_match_table);
632632

633633
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 = {
637637
.name = "lynx-28g",
638638
.of_match_table = lynx_28g_of_match_table,
639639
},

drivers/phy/freescale/phy-fsl-samsung-hdmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,8 +749,8 @@ static const struct of_device_id fsl_samsung_hdmi_phy_of_match[] = {
749749
MODULE_DEVICE_TABLE(of, fsl_samsung_hdmi_phy_of_match);
750750

751751
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,
754754
.driver = {
755755
.name = "fsl-samsung-hdmi-phy",
756756
.of_match_table = fsl_samsung_hdmi_phy_of_match,

drivers/phy/intel/phy-intel-lgm-combo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ static const struct of_device_id of_intel_cbphy_match[] = {
605605

606606
static struct platform_driver intel_cbphy_driver = {
607607
.probe = intel_cbphy_probe,
608-
.remove_new = intel_cbphy_remove,
608+
.remove = intel_cbphy_remove,
609609
.driver = {
610610
.name = "intel-combo-phy",
611611
.of_match_table = of_intel_cbphy_match,

drivers/phy/motorola/phy-cpcap-usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static void cpcap_usb_phy_remove(struct platform_device *pdev)
704704

705705
static struct platform_driver cpcap_usb_phy_driver = {
706706
.probe = cpcap_usb_phy_probe,
707-
.remove_new = cpcap_usb_phy_remove,
707+
.remove = cpcap_usb_phy_remove,
708708
.driver = {
709709
.name = "cpcap-usb-phy",
710710
.of_match_table = of_match_ptr(cpcap_usb_phy_id_table),

0 commit comments

Comments
 (0)