/* 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)