]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: hisilicon: hns: use phydev from struct net_device
authorPhilippe Reynes <tremyfr@gmail.com>
Tue, 20 Sep 2016 20:30:11 +0000 (22:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 06:11:40 +0000 (02:11 -0400)
commitae347099a45108c6773a1d8368866f1498f17773
tree8e847277369d42a7ab42fb7a2dfe5c9a162f72ea
parent8642af47f4b8ac1ebd58bb2b8f825a0fdf2d54a1
net: ethernet: hisilicon: hns: 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/hisilicon/hns/hns_enet.c
drivers/net/ethernet/hisilicon/hns/hns_enet.h
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c