From 8f9f154ae1669b8f45a0be4b4257779f1b0d223c Mon Sep 17 00:00:00 2001 From: Anton Vorontsov Date: Wed, 14 Jan 2009 14:38:02 -0800 Subject: [PATCH] --- yaml --- r: 129766 b: refs/heads/master c: f0d44ae310bc8eb0b6694e257015d8b24e1a357c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/net/phy/phy_device.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/[refs] b/[refs] index e568fe659714..68f9424fdf6d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f17f5c91ae3bfeb5cfc37fa132a5fdfceb8927be +refs/heads/master: f0d44ae310bc8eb0b6694e257015d8b24e1a357c diff --git a/trunk/drivers/net/phy/phy_device.c b/trunk/drivers/net/phy/phy_device.c index e35460165bf7..0a06e4fd37d9 100644 --- a/trunk/drivers/net/phy/phy_device.c +++ b/trunk/drivers/net/phy/phy_device.c @@ -231,15 +231,6 @@ struct phy_device * get_phy_device(struct mii_bus *bus, int addr) if ((phy_id & 0x1fffffff) == 0x1fffffff) return NULL; - /* - * Broken hardware is sometimes missing the pull-up resistor on the - * MDIO line, which results in reads to non-existent devices returning - * 0 rather than 0xffff. Catch this here and treat 0 as a non-existent - * device as well. - */ - if (phy_id == 0) - return NULL; - dev = phy_device_create(bus, addr, phy_id); return dev;