Skip to content

Commit 2c9fc83

Browse files
xhackerustcdavem330
authored andcommitted
net: stmmac: rename stmmac_pltfr_remove_no_dt to stmmac_pltfr_remove
Now, all users of the old stmmac_pltfr_remove() are converted to the devres helper, it's time to rename stmmac_pltfr_remove_no_dt() back to stmmac_pltfr_remove() and remove the old stmmac_pltfr_remove(). Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d336a11 commit 2c9fc83

17 files changed

Lines changed: 18 additions & 37 deletions

drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ MODULE_DEVICE_TABLE(of, anarion_dwmac_match);
135135

136136
static struct platform_driver anarion_dwmac_driver = {
137137
.probe = anarion_dwmac_probe,
138-
.remove_new = stmmac_pltfr_remove_no_dt,
138+
.remove_new = stmmac_pltfr_remove,
139139
.driver = {
140140
.name = "anarion-dwmac",
141141
.pm = &stmmac_pltfr_pm_ops,

drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ MODULE_DEVICE_TABLE(of, imx_dwmac_match);
418418

419419
static struct platform_driver imx_dwmac_driver = {
420420
.probe = imx_dwmac_probe,
421-
.remove_new = stmmac_pltfr_remove_no_dt,
421+
.remove_new = stmmac_pltfr_remove,
422422
.driver = {
423423
.name = "imx-dwmac",
424424
.pm = &stmmac_pltfr_pm_ops,

drivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ MODULE_DEVICE_TABLE(of, ingenic_mac_of_matches);
370370

371371
static struct platform_driver ingenic_mac_driver = {
372372
.probe = ingenic_mac_probe,
373-
.remove_new = stmmac_pltfr_remove_no_dt,
373+
.remove_new = stmmac_pltfr_remove,
374374
.driver = {
375375
.name = "ingenic-mac",
376376
.pm = pm_ptr(&ingenic_mac_pm_ops),

drivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static void intel_eth_plat_remove(struct platform_device *pdev)
164164
{
165165
struct intel_dwmac *dwmac = get_stmmac_bsp_priv(&pdev->dev);
166166

167-
stmmac_pltfr_remove_no_dt(pdev);
167+
stmmac_pltfr_remove(pdev);
168168
clk_disable_unprepare(dwmac->tx_clk);
169169
}
170170

drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ MODULE_DEVICE_TABLE(of, ipq806x_gmac_dwmac_match);
487487

488488
static struct platform_driver ipq806x_gmac_dwmac_driver = {
489489
.probe = ipq806x_gmac_probe,
490-
.remove_new = stmmac_pltfr_remove_no_dt,
490+
.remove_new = stmmac_pltfr_remove,
491491
.driver = {
492492
.name = "ipq806x-gmac-dwmac",
493493
.pm = &stmmac_pltfr_pm_ops,

drivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ MODULE_DEVICE_TABLE(of, lpc18xx_dwmac_match);
7272

7373
static struct platform_driver lpc18xx_dwmac_driver = {
7474
.probe = lpc18xx_dwmac_probe,
75-
.remove_new = stmmac_pltfr_remove_no_dt,
75+
.remove_new = stmmac_pltfr_remove,
7676
.driver = {
7777
.name = "lpc18xx-dwmac",
7878
.pm = &stmmac_pltfr_pm_ops,

drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ static void mediatek_dwmac_remove(struct platform_device *pdev)
683683
{
684684
struct mediatek_dwmac_plat_data *priv_plat = get_stmmac_bsp_priv(&pdev->dev);
685685

686-
stmmac_pltfr_remove_no_dt(pdev);
686+
stmmac_pltfr_remove(pdev);
687687
mediatek_dwmac_clks_config(priv_plat, false);
688688
}
689689

drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ MODULE_DEVICE_TABLE(of, meson6_dwmac_match);
7878

7979
static struct platform_driver meson6_dwmac_driver = {
8080
.probe = meson6_dwmac_probe,
81-
.remove_new = stmmac_pltfr_remove_no_dt,
81+
.remove_new = stmmac_pltfr_remove,
8282
.driver = {
8383
.name = "meson6-dwmac",
8484
.pm = &stmmac_pltfr_pm_ops,

drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ MODULE_DEVICE_TABLE(of, meson8b_dwmac_match);
520520

521521
static struct platform_driver meson8b_dwmac_driver = {
522522
.probe = meson8b_dwmac_probe,
523-
.remove_new = stmmac_pltfr_remove_no_dt,
523+
.remove_new = stmmac_pltfr_remove,
524524
.driver = {
525525
.name = "meson8b-dwmac",
526526
.pm = &stmmac_pltfr_pm_ops,

drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ static void socfpga_dwmac_remove(struct platform_device *pdev)
500500
struct stmmac_priv *priv = netdev_priv(ndev);
501501
struct phylink_pcs *pcs = priv->hw->lynx_pcs;
502502

503-
stmmac_pltfr_remove_no_dt(pdev);
503+
stmmac_pltfr_remove(pdev);
504504

505505
lynx_pcs_destroy(pcs);
506506
}

0 commit comments

Comments
 (0)