]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: adi: bfin_mac: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 16 Jul 2016 23:10:14 +0000 (01:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2016 06:22:02 +0000 (23:22 -0700)
commita4658c213109004cbe63229a35ed51cf1a7cda93
tree8ef40bfcd1fc4b1d2acc80c38c5e36457162fb7b
parent4b7351fe296ca668fc7f900bc343f9716df96130
net: ethernet: adi: bfin_mac: 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/adi/bfin_mac.c
drivers/net/ethernet/adi/bfin_mac.h