]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: et131x: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Fri, 17 Jun 2016 21:32:14 +0000 (23:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jun 2016 05:30:59 +0000 (22:30 -0700)
commit623caf2e42e827c9e27feacc1df47db2e8647918
treebdd21eb5b88d728bb25968ef376c3aaf3cc98b36
parentac10d0b2da9a8a03b60a74f1f3a95ecb9ee881d3
net: ethernet: et131x: 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/net/ethernet/agere/et131x.c