net: ethernet: gianfar: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 15 May 2016 23:30:08 +0000 (01:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 01:51:40 +0000 (21:51 -0400)
commit4c4a6b0e8fa24a628cbca3931745d482c66d303e
treee34fc0ea1bfb790398fb303697ebba52535b2f51
parent7e2c3aea4398d079745b9faa2c17b6cbd010f221
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>
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/freescale/gianfar.h
drivers/net/ethernet/freescale/gianfar_ethtool.c