]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: gianfar: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 15 May 2016 23:30:08 +0000 (01:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 01:51:40 +0000 (21:51 -0400)
commit0727b3bc31275a2b54f9182de707f4f8cbbff52b
treee34fc0ea1bfb790398fb303697ebba52535b2f51
parentbefcee8104b2ec54be722ca67fd2788b24916e6d
net: ethernet: gianfar: 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>
Acked-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/freescale/gianfar.h
drivers/net/ethernet/freescale/gianfar_ethtool.c