]> 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)
commitbb765415cec639ceccae8efc9c39c2ef1f947625
treeb9e349ac79c83cc1c34699622f2f1f1c05894a3c
parentcfd22d276adcf1773a4e2017e0c121394db56a99
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