diff options
-rw-r--r-- | drivers/net/arm/ixp4xx_eth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/arm/ixp4xx_eth.c b/drivers/net/arm/ixp4xx_eth.c index 6028226a7270..9eb9b98a7ae3 100644 --- a/drivers/net/arm/ixp4xx_eth.c +++ b/drivers/net/arm/ixp4xx_eth.c | |||
@@ -1229,8 +1229,10 @@ static int __devinit eth_init_one(struct platform_device *pdev) | |||
1229 | snprintf(phy_id, MII_BUS_ID_SIZE + 3, PHY_ID_FMT, "0", plat->phy); | 1229 | snprintf(phy_id, MII_BUS_ID_SIZE + 3, PHY_ID_FMT, "0", plat->phy); |
1230 | port->phydev = phy_connect(dev, phy_id, &ixp4xx_adjust_link, 0, | 1230 | port->phydev = phy_connect(dev, phy_id, &ixp4xx_adjust_link, 0, |
1231 | PHY_INTERFACE_MODE_MII); | 1231 | PHY_INTERFACE_MODE_MII); |
1232 | if ((err = IS_ERR(port->phydev))) | 1232 | if (IS_ERR(port->phydev)) { |
1233 | err = PTR_ERR(port->phydev); | ||
1233 | goto err_free_mem; | 1234 | goto err_free_mem; |
1235 | } | ||
1234 | 1236 | ||
1235 | port->phydev->irq = PHY_POLL; | 1237 | port->phydev->irq = PHY_POLL; |
1236 | 1238 | ||