]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: octeon: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 30 Jul 2016 14:14:43 +0000 (16:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 22:42:20 +0000 (15:42 -0700)
commitfa2601d693296d3d2d5671b53a9ff517e36ab8a1
treea0deac96db434801f61dc6433f94434ec6782d61
parent9e4d9db6b995600b29886815453dd4679d12a4f3
net: ethernet: octeon: 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/staging/octeon/ethernet-mdio.c
drivers/staging/octeon/ethernet-rgmii.c
drivers/staging/octeon/ethernet.c
drivers/staging/octeon/octeon-ethernet.h