net: stmmac: dwmac-rk:return actual error from phy_power_on
Subsystems (5)
PATCH v2 2/2 net: stmmac: dwmac-rk:return actual error from phy_power_on
The function phy_power_on currently always returns 0, even when regulator operations fail. This patch modifies it to return the actual error code from regulator_enable/disable operations
Signed-off-by Lizhe <[email protected]>
--- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +1 -1
@@ -1514,7 +1514,7 @@ static int rk_phy_power_set(struct rk_priv_data *bsp_priv, bool enable)dev_err (dev,"fail to disable phy-supply\n" ); } -return 0 ; +return ret; } static struct rk_priv_data *rk_gmac_setup(struct platform_device *pdev,
Signature · 1 line
2.17.1