aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns/hns_enet.h
diff options
context:
space:
mode:
authorPhilippe Reynes <tremyfr@gmail.com>2016-09-20 22:30:11 +0200
committerDavid S. Miller <davem@davemloft.net>2016-09-22 02:11:40 -0400
commit262b38cdb3e47d402f4fdf76fcf3e8c4c8380a52 (patch)
tree8e847277369d42a7ab42fb7a2dfe5c9a162f72ea /drivers/net/ethernet/hisilicon/hns/hns_enet.h
parentnet: ethernet: mediatek: fix missing changes merged for conflicts overlapping commits (diff)
downloadlinux-dev-262b38cdb3e47d402f4fdf76fcf3e8c4c8380a52.tar.xz
linux-dev-262b38cdb3e47d402f4fdf76fcf3e8c4c8380a52.zip
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns/hns_enet.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns/hns_enet.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.h b/drivers/net/ethernet/hisilicon/hns/hns_enet.h
index 44bb3015eed3..5b412de350aa 100644
--- a/drivers/net/ethernet/hisilicon/hns/hns_enet.h
+++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.h
@@ -59,7 +59,6 @@ struct hns_nic_priv {
u32 port_id;
int phy_mode;
int phy_led_val;
- struct phy_device *phy;
struct net_device *netdev;
struct device *dev;
struct hnae_handle *ae_handle;