File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed
drivers/net/ethernet/stmicro/stmmac Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -477,9 +477,7 @@ static int dwc_eth_dwmac_remove(struct platform_device *pdev)
477477
478478 data = device_get_match_data (& pdev -> dev );
479479
480- err = stmmac_dvr_remove (& pdev -> dev );
481- if (err < 0 )
482- dev_err (& pdev -> dev , "failed to remove platform: %d\n" , err );
480+ stmmac_dvr_remove (& pdev -> dev );
483481
484482 err = data -> remove (pdev );
485483 if (err < 0 )
Original file line number Diff line number Diff line change @@ -1915,11 +1915,12 @@ static int rk_gmac_probe(struct platform_device *pdev)
19151915static int rk_gmac_remove (struct platform_device * pdev )
19161916{
19171917 struct rk_priv_data * bsp_priv = get_stmmac_bsp_priv (& pdev -> dev );
1918- int ret = stmmac_dvr_remove (& pdev -> dev );
1918+
1919+ stmmac_dvr_remove (& pdev -> dev );
19191920
19201921 rk_gmac_powerdown (bsp_priv );
19211922
1922- return ret ;
1923+ return 0 ;
19231924}
19241925
19251926#ifdef CONFIG_PM_SLEEP
Original file line number Diff line number Diff line change @@ -371,11 +371,12 @@ static int sti_dwmac_probe(struct platform_device *pdev)
371371static int sti_dwmac_remove (struct platform_device * pdev )
372372{
373373 struct sti_dwmac * dwmac = get_stmmac_bsp_priv (& pdev -> dev );
374- int ret = stmmac_dvr_remove (& pdev -> dev );
374+
375+ stmmac_dvr_remove (& pdev -> dev );
375376
376377 clk_disable_unprepare (dwmac -> clk );
377378
378- return ret ;
379+ return 0 ;
379380}
380381
381382#ifdef CONFIG_PM_SLEEP
Original file line number Diff line number Diff line change @@ -421,17 +421,18 @@ static int stm32_dwmac_remove(struct platform_device *pdev)
421421{
422422 struct net_device * ndev = platform_get_drvdata (pdev );
423423 struct stmmac_priv * priv = netdev_priv (ndev );
424- int ret = stmmac_dvr_remove (& pdev -> dev );
425424 struct stm32_dwmac * dwmac = priv -> plat -> bsp_priv ;
426425
426+ stmmac_dvr_remove (& pdev -> dev );
427+
427428 stm32_dwmac_clk_disable (priv -> plat -> bsp_priv );
428429
429430 if (dwmac -> irq_pwr_wakeup >= 0 ) {
430431 dev_pm_clear_wake_irq (& pdev -> dev );
431432 device_init_wakeup (& pdev -> dev , false);
432433 }
433434
434- return ret ;
435+ return 0 ;
435436}
436437
437438static int stm32mp1_suspend (struct stm32_dwmac * dwmac )
Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ int stmmac_xdp_open(struct net_device *dev);
345345void stmmac_xdp_release (struct net_device * dev );
346346int stmmac_resume (struct device * dev );
347347int stmmac_suspend (struct device * dev );
348- int stmmac_dvr_remove (struct device * dev );
348+ void stmmac_dvr_remove (struct device * dev );
349349int stmmac_dvr_probe (struct device * device ,
350350 struct plat_stmmacenet_data * plat_dat ,
351351 struct stmmac_resources * res );
Original file line number Diff line number Diff line change @@ -7352,7 +7352,7 @@ EXPORT_SYMBOL_GPL(stmmac_dvr_probe);
73527352 * Description: this function resets the TX/RX processes, disables the MAC RX/TX
73537353 * changes the link status, releases the DMA descriptor rings.
73547354 */
7355- int stmmac_dvr_remove (struct device * dev )
7355+ void stmmac_dvr_remove (struct device * dev )
73567356{
73577357 struct net_device * ndev = dev_get_drvdata (dev );
73587358 struct stmmac_priv * priv = netdev_priv (ndev );
@@ -7388,8 +7388,6 @@ int stmmac_dvr_remove(struct device *dev)
73887388
73897389 pm_runtime_disable (dev );
73907390 pm_runtime_put_noidle (dev );
7391-
7392- return 0 ;
73937391}
73947392EXPORT_SYMBOL_GPL (stmmac_dvr_remove );
73957393
Original file line number Diff line number Diff line change @@ -711,14 +711,15 @@ int stmmac_pltfr_remove(struct platform_device *pdev)
711711 struct net_device * ndev = platform_get_drvdata (pdev );
712712 struct stmmac_priv * priv = netdev_priv (ndev );
713713 struct plat_stmmacenet_data * plat = priv -> plat ;
714- int ret = stmmac_dvr_remove (& pdev -> dev );
714+
715+ stmmac_dvr_remove (& pdev -> dev );
715716
716717 if (plat -> exit )
717718 plat -> exit (pdev , plat -> bsp_priv );
718719
719720 stmmac_remove_config_dt (pdev , plat );
720721
721- return ret ;
722+ return 0 ;
722723}
723724EXPORT_SYMBOL_GPL (stmmac_pltfr_remove );
724725
You can’t perform that action at this time.
0 commit comments