]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/phy/phy.c
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / drivers / net / phy / phy.c
index 7d327f766a2cf23bbfd622de4f0b7e4bae8c4226..32e1500eaa253e71d702ccbdb66375c378be56d5 100644 (file)
@@ -612,10 +612,9 @@ 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)