diff options
author | Philippe Reynes <tremyfr@gmail.com> | 2016-05-16 01:30:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-16 21:51:40 -0400 |
commit | 4c4a6b0e8fa24a628cbca3931745d482c66d303e (patch) | |
tree | e34fc0ea1bfb790398fb303697ebba52535b2f51 /drivers/net/ethernet/freescale/gianfar.h | |
parent | 7e2c3aea4398d079745b9faa2c17b6cbd010f221 (diff) |
net: ethernet: gianfar: 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>
Acked-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.h')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.h b/drivers/net/ethernet/freescale/gianfar.h index cb77667971a7..373fd094f2f3 100644 --- a/drivers/net/ethernet/freescale/gianfar.h +++ b/drivers/net/ethernet/freescale/gianfar.h @@ -1153,7 +1153,6 @@ struct gfar_private { phy_interface_t interface; struct device_node *phy_node; struct device_node *tbi_node; - struct phy_device *phydev; struct mii_bus *mii_bus; int oldspeed; int oldduplex; |