aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
index 0f660af01a4b..195669f550f0 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
@@ -1147,7 +1147,10 @@ static int sun8i_dwmac_probe(struct platform_device *pdev)
1147 return ret; 1147 return ret;
1148 } 1148 }
1149 1149
1150 plat_dat->interface = of_get_phy_mode(dev->of_node); 1150 ret = of_get_phy_mode(dev->of_node);
1151 if (ret < 0)
1152 return -EINVAL;
1153 plat_dat->interface = ret;
1151 1154
1152 /* platform data specifying hardware features and callbacks. 1155 /* platform data specifying hardware features and callbacks.
1153 * hardware features were copied from Allwinner drivers. 1156 * hardware features were copied from Allwinner drivers.