net: ethernet: octeon: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Fri, 15 Jul 2016 23:13:34 +0000 (01:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 16:02:32 +0000 (18:02 +0200)
commit5d99db13b77e301fcd839310d47392053db35562
treee937dc658aca495243b7835ed62624198d6ef7fc
parent0048a44c36db045071dcb1bb4844140cd3712e1d
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-mdio.c
drivers/staging/octeon/ethernet-rgmii.c
drivers/staging/octeon/ethernet.c
drivers/staging/octeon/octeon-ethernet.h