aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2021-02-16 22:20:05 -0600
committerDavid S. Miller <davem@davemloft.net>2021-02-17 13:42:56 -0800
commit2743aa245038fea4bd9f62bf98e25dbc6449f2ec (patch)
treeacc2183e040eda4ea0ab03c6a05514e97172cf80 /drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
parentnet: stmmac: dwmac-sun8i: Use reset_control_reset (diff)
downloadlinux-dev-2743aa245038fea4bd9f62bf98e25dbc6449f2ec.tar.xz
linux-dev-2743aa245038fea4bd9f62bf98e25dbc6449f2ec.zip
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: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
index b61f442ed303..a3d333b65283 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
@@ -1229,6 +1229,7 @@ static int sun8i_dwmac_probe(struct platform_device *pdev)
ndev = dev_get_drvdata(&pdev->dev);
priv = netdev_priv(ndev);
+
/* The mux must be registered after parent MDIO
* so after stmmac_dvr_probe()
*/
@@ -1247,7 +1248,8 @@ static int sun8i_dwmac_probe(struct platform_device *pdev)
goto dwmac_remove;
}
- return ret;
+ return 0;
+
dwmac_mux:
reset_control_put(gmac->rst_ephy);
clk_put(gmac->ephy_clk);