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