aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/altera/altera_tse.h
diff options
context:
space:
mode:
authorPhilippe Reynes2016-06-18 16:37:20 +0200
committerDavid S. Miller2016-06-22 16:22:41 -0400
commit941ea69e176bc5cc8a359c6b608250fc950be0b1 (patch)
tree188e638db93a239409dd2cd550ff6212f417912c /drivers/net/ethernet/altera/altera_tse.h
parent91cd3b4499bfbf6d5a412b4f9e3da9d260a1412f (diff)
net: ethernet: altera_tse: 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 phydev 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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/altera/altera_tse.h')
-rw-r--r--drivers/net/ethernet/altera/altera_tse.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/altera/altera_tse.h b/drivers/net/ethernet/altera/altera_tse.h
index 103c30ddddf7..e0052003d16f 100644
--- a/drivers/net/ethernet/altera/altera_tse.h
+++ b/drivers/net/ethernet/altera/altera_tse.h
@@ -473,7 +473,6 @@ struct altera_tse_private {
int phy_addr; /* PHY's MDIO address, -1 for autodetection */
phy_interface_t phy_iface;
struct mii_bus *mdio;
- struct phy_device *phydev;
int oldspeed;
int oldduplex;
int oldlink;