net: ethernet: davinci_emac: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Fri, 1 Jul 2016 22:02:34 +0000 (00:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:51:11 +0000 (14:51 -0400)
commitc332177e5ee5ef9280d346fb1cba0f00ffe4c18d
tree50263986d2f32db8f0851a040df06ff09d52a524
parent513334e18a74f70c0be58c2eb73af1715325b870
net: ethernet: davinci_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>
drivers/net/ethernet/ti/davinci_emac.c