Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -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