diff options
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c index 2c6d7c69c8f7..0d21082ceb93 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | |||
@@ -191,7 +191,7 @@ static int ipq806x_gmac_of_parse(struct ipq806x_gmac *gmac) | |||
191 | struct device *dev = &gmac->pdev->dev; | 191 | struct device *dev = &gmac->pdev->dev; |
192 | 192 | ||
193 | gmac->phy_mode = of_get_phy_mode(dev->of_node); | 193 | gmac->phy_mode = of_get_phy_mode(dev->of_node); |
194 | if (gmac->phy_mode < 0) { | 194 | if ((int)gmac->phy_mode < 0) { |
195 | dev_err(dev, "missing phy mode property\n"); | 195 | dev_err(dev, "missing phy mode property\n"); |
196 | return -EINVAL; | 196 | return -EINVAL; |
197 | } | 197 | } |