phy: fix phy address bug

PHYID returns 0xffff and not 0xffffffff when not found and in some
case(at91sam9263) 0x0. Maybe this patch could be useful.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Giulio Benetti and committed by David S. Miller 3ee82383 773c9c1f

+2 -2
+2 -2
drivers/net/phy/phy_device.c
··· 227 227 if (r) 228 228 return ERR_PTR(r); 229 229 230 - /* If the phy_id is all Fs, there is no device there */ 231 - if (0xffffffff == phy_id) 230 + /* If the phy_id is all Fs or all 0s, there is no device there */ 231 + if ((0xffff == phy_id) || (0x00 == phy_id)) 232 232 return NULL; 233 233 234 234 dev = phy_device_create(bus, addr, phy_id);