net: ethernet: ti: cpmac: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Fri, 15 Jul 2016 10:39:01 +0000 (12:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 23:41:35 +0000 (16:41 -0700)
commitb401a9bce7f3e73ebbe10639e0986f7f3b01e5ca
tree5e4872c7e4db6079e3bf408b1d2afeca24d23a29
parentb4cafd8c4909187cb17b358be60ec3b86e91af00
net: ethernet: ti: cpmac: 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/cpmac.c