Skip to content

Commit

Permalink
AOSCOS: net: stmmac: Make phytium_dwmac_remove() return void
Browse files Browse the repository at this point in the history
Fixes: 731b13ef92e8 ("BACKPORT: PHYTIUM: net/stmmac: Add phytium DWMAC driver support v2")
Fixes: 0edb555 ("platform: Make platform_driver::remove() return void")
Signed-off-by: Kexy Biscuit <kexybiscuit@aosc.io>
  • Loading branch information
KexyBiscuit committed Nov 7, 2024
1 parent 92b7352 commit 59d3700
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/stmicro/stmmac/dwmac-phytium.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,14 @@ 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);
struct plat_stmmacenet_data *plat = priv->plat;

stmmac_pltfr_remove(pdev);
clk_unregister_fixed_rate(plat->stmmac_clk);

return 0;
}

#ifdef CONFIG_OF
Expand Down

0 comments on commit 59d3700

Please sign in to comment.