aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/arc/emac.h
diff options
context:
space:
mode:
authorPhilippe Reynes <tremyfr@gmail.com>2016-07-02 20:06:51 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-04 15:59:52 -0700
commit01dea536dc4e8eccd0d7741ec0e3dacd3060055c (patch)
treecee00777197cbb801ea544a2ff9043c8b5a2f80d /drivers/net/ethernet/arc/emac.h
parentnet: ethernet: ixp4xx_eth: use phy_ethtool_{get|set}_link_ksettings (diff)
downloadlinux-dev-01dea536dc4e8eccd0d7741ec0e3dacd3060055c.tar.xz
linux-dev-01dea536dc4e8eccd0d7741ec0e3dacd3060055c.zip
net: ethernet: arc: emac: 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/arc/emac.h')
-rw-r--r--drivers/net/ethernet/arc/emac.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/arc/emac.h b/drivers/net/ethernet/arc/emac.h
index ca562bc034c3..e4feb712d4f2 100644
--- a/drivers/net/ethernet/arc/emac.h
+++ b/drivers/net/ethernet/arc/emac.h
@@ -134,7 +134,6 @@ struct arc_emac_priv {
/* Devices */
struct device *dev;
- struct phy_device *phy_dev;
struct mii_bus *bus;
struct arc_emac_mdio_bus_data bus_data;