net: ethernet: renesas: sh_eth: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Tue, 9 Aug 2016 22:04:48 +0000 (00:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Aug 2016 06:14:53 +0000 (23:14 -0700)
commit9fd0375ad376d1f98f4af929fdbefa141c86b800
tree921bce425565725e891b73bebe9931a7be53b8b2
parent05b8ad25bc8b045721a93d04cf8dcf6f74b3cd6a
net: ethernet: renesas: sh_eth: 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>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/renesas/sh_eth.h