net: ethernet: apm: xgene: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 11 Sep 2016 15:54:03 +0000 (17:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Sep 2016 15:45:19 +0000 (11:45 -0400)
commit971d3a44c00dcb27353f929c4c28367956c15527
tree1734225645f061008bb7068e6567084df3e1b242
parenta5f54fcc8a63f4e93ea48243c3a762aa848299d5
net: ethernet: apm: xgene: 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_dev 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>
drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.h