From 7452ddd41668a2bc17d686665a1fed46542fb041 Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Thu, 13 Nov 2008 21:53:13 +0000 Subject: [PATCH] --- yaml --- r: 119094 b: refs/heads/master c: 3ee82383f0098a2e13acc8cf1be8e47512f41e5a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/net/phy/phy_device.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index b8a25e73fe42..66c060947a8f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 773c9c1f77174429ad2feb1735a3beb33ff3b6c0 +refs/heads/master: 3ee82383f0098a2e13acc8cf1be8e47512f41e5a diff --git a/trunk/drivers/net/phy/phy_device.c b/trunk/drivers/net/phy/phy_device.c index e11b03b2b25a..8fb1faca883a 100644 --- a/trunk/drivers/net/phy/phy_device.c +++ b/trunk/drivers/net/phy/phy_device.c @@ -227,8 +227,8 @@ struct phy_device * get_phy_device(struct mii_bus *bus, int addr) if (r) return ERR_PTR(r); - /* If the phy_id is all Fs, there is no device there */ - if (0xffffffff == phy_id) + /* If the phy_id is all Fs or all 0s, there is no device there */ + if ((0xffff == phy_id) || (0x00 == phy_id)) return NULL; dev = phy_device_create(bus, addr, phy_id);