diff options
author | Philippe Reynes <tremyfr@gmail.com> | 2016-07-02 20:06:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-05 00:59:52 +0200 |
commit | 01dea536dc4e8eccd0d7741ec0e3dacd3060055c (patch) | |
tree | cee00777197cbb801ea544a2ff9043c8b5a2f80d /drivers/net/ethernet/arc/emac.h | |
parent | net: ethernet: ixp4xx_eth: use phy_ethtool_{get|set}_link_ksettings (diff) | |
download | linux-01dea536dc4e8eccd0d7741ec0e3dacd3060055c.tar.xz linux-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.h | 1 |
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; |