]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: cavium: octeon: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 2 Jul 2016 21:36:59 +0000 (23:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2016 22:59:51 +0000 (15:59 -0700)
commitec9bd9191373b4881500999872a3041382354c46
treebf007d6a4f5432d63e5a728598f83eea63ff83ab
parentde9e56744e987da326b5f52799b5b3a332d327eb
net: ethernet: cavium: 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
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c