summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/aeroflex/greth.h
diff options
context:
space:
mode:
authorPhilippe Reynes <tremyfr@gmail.com>2016-07-30 16:22:05 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-08 15:42:20 -0700
commit65752dda4b525730746085a351e6e936d29bc586 (patch)
treee5f7ba7797f8fc114835ba91c192be2fdde9be1a /drivers/net/ethernet/aeroflex/greth.h
parent0d5704bf4ebe4d83ab46a2206a74faf2fe3a77af (diff)
downloadlinux-65752dda4b525730746085a351e6e936d29bc586.tar.gz
linux-65752dda4b525730746085a351e6e936d29bc586.tar.bz2
linux-65752dda4b525730746085a351e6e936d29bc586.zip
net: ethernet: greth: 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 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/aeroflex/greth.h')
-rw-r--r--drivers/net/ethernet/aeroflex/greth.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aeroflex/greth.h b/drivers/net/ethernet/aeroflex/greth.h
index 92dd918e4a83..9c07140a5d8d 100644
--- a/drivers/net/ethernet/aeroflex/greth.h
+++ b/drivers/net/ethernet/aeroflex/greth.h
@@ -123,7 +123,6 @@ struct greth_private {
struct napi_struct napi;
spinlock_t devlock;
- struct phy_device *phy;
struct mii_bus *mdio;
unsigned int link;
unsigned int speed;