Commit 2743aa24 authored by Samuel Holland's avatar Samuel Holland Committed by David S. Miller

net: stmmac: dwmac-sun8i: Minor probe function cleanup

Adjust the spacing and use an explicit "return 0" in the success path
to make the function easier to parse.
Reviewed-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c22f546
...@@ -1229,6 +1229,7 @@ static int sun8i_dwmac_probe(struct platform_device *pdev) ...@@ -1229,6 +1229,7 @@ static int sun8i_dwmac_probe(struct platform_device *pdev)
ndev = dev_get_drvdata(&pdev->dev); ndev = dev_get_drvdata(&pdev->dev);
priv = netdev_priv(ndev); priv = netdev_priv(ndev);
/* The mux must be registered after parent MDIO /* The mux must be registered after parent MDIO
* so after stmmac_dvr_probe() * so after stmmac_dvr_probe()
*/ */
...@@ -1247,7 +1248,8 @@ static int sun8i_dwmac_probe(struct platform_device *pdev) ...@@ -1247,7 +1248,8 @@ static int sun8i_dwmac_probe(struct platform_device *pdev)
goto dwmac_remove; goto dwmac_remove;
} }
return ret; return 0;
dwmac_mux: dwmac_mux:
reset_control_put(gmac->rst_ephy); reset_control_put(gmac->rst_ephy);
clk_put(gmac->ephy_clk); clk_put(gmac->ephy_clk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment