Skip to content

Commit

Permalink
ethernet: amd: au1000: Remove pointless warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Lunn authored and David S. Miller committed Jan 11, 2016
1 parent 3fe01e2 commit ede5599
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/ethernet/amd/au1000_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ede5599

Please sign in to comment.