Commit ede55997 authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller
Browse files

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: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3fe01e24
...@@ -344,9 +344,6 @@ static void au1000_mdio_write(struct net_device *dev, int phy_addr, ...@@ -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) 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; struct net_device *const dev = bus->priv;
/* make sure the MAC associated with this /* make sure the MAC associated with this
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment