]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/net/ethernet/hisilicon/hns/hns_enet.c
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)
commit262b38cdb3e47d402f4fdf76fcf3e8c4c8380a52
tree8e847277369d42a7ab42fb7a2dfe5c9a162f72ea
parente82f71489ffb325a9b7bca367b06a39315452dfe
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