summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/adi/bfin_mac.h
diff options
context:
space:
mode:
authorPhilippe Reynes <tremyfr@gmail.com>2016-07-17 01:10:14 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-17 23:22:02 -0700
commitec87485dbecd95af06ca8b681681c433679db974 (patch)
tree8ef40bfcd1fc4b1d2acc80c38c5e36457162fb7b /drivers/net/ethernet/adi/bfin_mac.h
parentbd25997d77730d0c6679883a899899a939c704b3 (diff)
net: ethernet: adi: bfin_mac: 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/adi/bfin_mac.h')
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.h b/drivers/net/ethernet/adi/bfin_mac.h
index d1217db70db4..8c3b56198e4b 100644
--- a/drivers/net/ethernet/adi/bfin_mac.h
+++ b/drivers/net/ethernet/adi/bfin_mac.h
@@ -92,7 +92,6 @@ struct bfin_mac_local {
int old_speed;
int old_duplex;
- struct phy_device *phydev;
struct mii_bus *mii_bus;
#if defined(CONFIG_BFIN_MAC_USE_HWSTAMP)