diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-phytium.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-phytium.c index dd4171a39a4a94..fbedbada8eed94 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-phytium.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-phytium.c @@ -176,7 +176,7 @@ static int phytium_dwmac_probe(struct platform_device *pdev) return stmmac_dvr_probe(&pdev->dev, plat, &stmmac_res); } -static int phytium_dwmac_remove(struct platform_device *pdev) +static void phytium_dwmac_remove(struct platform_device *pdev) { struct net_device *ndev = platform_get_drvdata(pdev); struct stmmac_priv *priv = netdev_priv(ndev); @@ -184,8 +184,6 @@ static int phytium_dwmac_remove(struct platform_device *pdev) stmmac_pltfr_remove(pdev); clk_unregister_fixed_rate(plat->stmmac_clk); - - return 0; } #ifdef CONFIG_OF