diff options
author | Philippe Reynes <tremyfr@gmail.com> | 2016-08-10 00:04:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-10 23:14:53 -0700 |
commit | 9fd0375ad376d1f98f4af929fdbefa141c86b800 (patch) | |
tree | 921bce425565725e891b73bebe9931a7be53b8b2 /drivers/net/ethernet/renesas/sh_eth.h | |
parent | 05b8ad25bc8b045721a93d04cf8dcf6f74b3cd6a (diff) | |
download | linux-9fd0375ad376d1f98f4af929fdbefa141c86b800.tar.gz linux-9fd0375ad376d1f98f4af929fdbefa141c86b800.tar.bz2 linux-9fd0375ad376d1f98f4af929fdbefa141c86b800.zip |
net: ethernet: renesas: sh_eth: use phydev from struct net_device
The private structure contain a pointer to phydev, but the structure
net_device already contain such pointer. So we can remove the pointer
phy_dev in the private structure, and update the driver to use the
one contained in struct net_device.
Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/sh_eth.h')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.h b/drivers/net/ethernet/renesas/sh_eth.h index c62380e34a1d..d050f37f3e0f 100644 --- a/drivers/net/ethernet/renesas/sh_eth.h +++ b/drivers/net/ethernet/renesas/sh_eth.h @@ -518,7 +518,6 @@ struct sh_eth_private { /* MII transceiver section. */ u32 phy_id; /* PHY ID */ struct mii_bus *mii_bus; /* MDIO bus control */ - struct phy_device *phydev; /* PHY device control */ int link; phy_interface_t phy_interface; int msg_enable; |