summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/dnet.h
diff options
context:
space:
mode:
authorPhilippe Reynes <tremyfr@gmail.com>2016-06-23 23:48:58 +0200
committerDavid S. Miller <davem@davemloft.net>2016-06-28 11:10:26 +0200
commit958974fdaf7fcd26fcfcf409e3e61fdc3ab4020c (patch)
treefd4361ddc0c5c41ac2b674c43d3931f99bd62343 /drivers/net/ethernet/dnet.h
parentMerge branch 'sfp-infra' (diff)
downloadlinux-958974fdaf7fcd26fcfcf409e3e61fdc3ab4020c.tar.xz
linux-958974fdaf7fcd26fcfcf409e3e61fdc3ab4020c.zip
net: ethernet: dnet: 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/dnet.h')
-rw-r--r--drivers/net/ethernet/dnet.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dnet.h b/drivers/net/ethernet/dnet.h
index 37f5b30fa78b..d985080bbd5d 100644
--- a/drivers/net/ethernet/dnet.h
+++ b/drivers/net/ethernet/dnet.h
@@ -216,7 +216,6 @@ struct dnet {
/* PHY stuff */
struct mii_bus *mii_bus;
- struct phy_device *phy_dev;
unsigned int link;
unsigned int speed;
unsigned int duplex;