]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: tc35815: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Thu, 14 Jul 2016 13:20:46 +0000 (15:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 23:41:33 +0000 (16:41 -0700)
commit39778db23ece22858b896fff8ae469c73eb74015
treec4830be592d71472d4e19f005790721578a19242
parentac75456140f8d1720359c0e51ba575878c30051a
net: ethernet: tc35815: 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/toshiba/tc35815.c