]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ftgmac100: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 15 May 2016 23:35:13 +0000 (01:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 01:51:41 +0000 (21:51 -0400)
commit6661c3d103754fd429ff9aeeacd8ca2a2f50a0b7
tree5cf8f4f321880ca94c479987336bced000e9a88c
parent200fc5748b24f6eecca7f5d848af13d24eccc19e
net: ethernet: ftgmac100: 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/faraday/ftgmac100.c