]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: davinci_emac: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Fri, 1 Jul 2016 22:02:34 +0000 (00:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:51:11 +0000 (14:51 -0400)
commit33c3f7042d87ddadaba45c3420d235e52965eeed
tree50263986d2f32db8f0851a040df06ff09d52a524
parent45fba7c979e7c7933dc914018fb0867b5aeab9b7
net: ethernet: davinci_emac: 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/ti/davinci_emac.c