]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/phy/phy.c
TX6 Release 2013-04-22
[karo-tx-uboot.git] / drivers / net / phy / phy.c
index 1ffa791dceb357d2e813880732fe3350a3cbc021..0f4f8d2108a72c1d19fd73480b029baf0051ab14 100644 (file)
@@ -613,10 +613,9 @@ static struct phy_device *get_phy_device(struct mii_dev *bus, int addr,
 
                /* If the phy_id is mostly Fs, there is no device there */
                if ((phy_id & 0x1fffffff) != 0x1fffffff)
-                       break;
+                       return phy_device_create(bus, addr, phy_id, interface);
        }
-
-       return phy_device_create(bus, addr, phy_id, interface);
+       return NULL;
 }
 
 int phy_reset(struct phy_device *phydev)