]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: fec-mpc52xx: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Mon, 16 May 2016 22:32:33 +0000 (00:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 02:20:06 +0000 (22:20 -0400)
commita9dd365a53dab3744fc336b385a9744dbfa74e51
treeb9e349ac79c83cc1c34699622f2f1f1c05894a3c
parentbde057fecb490c03f438641d5d30ae360ae76158
net: ethernet: fec-mpc52xx: 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_mpc52xx.c