net: ethernet: fec: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Mon, 9 May 2016 22:19:42 +0000 (00:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 May 2016 19:06:20 +0000 (15:06 -0400)
commit45f5c327ce5ce9178147279b5d6b95eac216c84c
tree0ceeef3c5b3b5de8c6793faf7c880d96361d8040
parent9d9a77cee1ab53dc6419b1ab9da88c4e9342d26a
net: ethernet: fec: 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
phydev 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/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c