]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94c6895645ffaa4d23459b1d149db240e111b643
tree1734225645f061008bb7068e6567084df3e1b242
parent4d8d28d1e5087d1004e3d8cdf3f475817c5394f2
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