]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: hix5hd2: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 25 Jun 2016 14:55:12 +0000 (16:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 13:12:35 +0000 (09:12 -0400)
commitfaedc48fdc8f35c1acfd7754d3b2d9e51feca744
tree36de4085b9f8ece42e06586fce633046db6fe801
parente9985a9f2fef0e94369983251a6ea75aab1293d4
net: ethernet: hix5hd2: 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/hisilicon/hix5hd2_gmac.c