net: ethernet: pasemi_mac: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Thu, 14 Jul 2016 21:44:52 +0000 (23:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 23:41:34 +0000 (16:41 -0700)
commit80721e7fa68f914a21b2685a01399b3aa80ac116
tree3af84b8e71392ecff15d71e33f486cc75ee8bd59
parent6e3848404d418f4200790c3bdbab05e58de7976b
net: ethernet: pasemi_mac: 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/pasemi/pasemi_mac.c
drivers/net/ethernet/pasemi/pasemi_mac.h
drivers/net/ethernet/pasemi/pasemi_mac_ethtool.c