diff options
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c index e5ff734d4f9b..9eb7f65d8000 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | |||
@@ -808,8 +808,7 @@ static int sun8i_dwmac_set_syscon(struct stmmac_priv *priv) | |||
808 | val, reg); | 808 | val, reg); |
809 | 809 | ||
810 | if (gmac->variant->soc_has_internal_phy) { | 810 | if (gmac->variant->soc_has_internal_phy) { |
811 | if (of_property_read_bool(priv->plat->phy_node, | 811 | if (of_property_read_bool(node, "allwinner,leds-active-low")) |
812 | "allwinner,leds-active-low")) | ||
813 | reg |= H3_EPHY_LED_POL; | 812 | reg |= H3_EPHY_LED_POL; |
814 | else | 813 | else |
815 | reg &= ~H3_EPHY_LED_POL; | 814 | reg &= ~H3_EPHY_LED_POL; |