summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2016-01-11 00:13:21 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-01-11 03:06:59 (GMT)
commitede5599753802b5733f671e5f14403ae1eadce5a (patch)
tree4fe3581b42a49c6d6b05f241858d33a217d90fbc /drivers/net
parent3fe01e2406ead2bdc4ae436254c66b5341c1e5c7 (diff)
downloadlinux-ede5599753802b5733f671e5f14403ae1eadce5a.tar.xz
ethernet: amd: au1000: Remove pointless warning
The warning about being able to read any MDIO device, not just the attached ethernet devices PHY applies to all MDIO drivers. So remove it. This also removes a reference to a member in phy_device which has moved. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/amd/au1000_eth.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c
index c864041..d3977d0 100644
--- a/drivers/net/ethernet/amd/au1000_eth.c
+++ b/drivers/net/ethernet/amd/au1000_eth.c
@@ -344,9 +344,6 @@ static void au1000_mdio_write(struct net_device *dev, int phy_addr,
static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum)
{
- /* WARNING: bus->phy_map[phy_addr].attached_dev == dev does
- * _NOT_ hold (e.g. when PHY is accessed through other MAC's MII bus)
- */
struct net_device *const dev = bus->priv;
/* make sure the MAC associated with this