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>
This commit is contained in:
Philippe Reynes
2016-07-02 20:06:51 +02:00
committed by David S. Miller
parent fa018484cf
commit 01dea536dc
2 changed files with 12 additions and 18 deletions

View File

@@ -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;