]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ethoc: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Fri, 15 Jul 2016 07:59:11 +0000 (09:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 23:41:34 +0000 (16:41 -0700)
commitef7dc7b150b75567581530a7e455355c90c5a5ca
treeb7fd69e2e679661a1c9529172c827b3868928edc
parenta66e62f9673d3a9d319a4ff21a5baf5d5caf8a33
net: ethernet: ethoc: 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
phy 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>
Reviewed-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ethoc.c