diff options
author | Sean Wang <sean.wang@mediatek.com> | 2016-09-22 11:33:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-22 15:22:27 +0300 |
commit | 2364c5c5ec14e936826eb10af56a337ccec01ffa (patch) | |
tree | 1775165e2d419d6366806d9c3f5af69bddd2d2c5 /drivers/net/ethernet/mediatek/mtk_eth_soc.h | |
parent | 4fa01af4845633d1b33ec2dfb9b5c3da0b3408f4 (diff) | |
download | linux-2364c5c5ec14e936826eb10af56a337ccec01ffa.tar.xz |
net: ethernet: mediatek: use phydev from struct net_device
reuse phydev already in struct net_device instead of creating
another new one in private structure.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek/mtk_eth_soc.h')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h index e52115633726..7e194f795c9a 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h @@ -557,7 +557,6 @@ struct mtk_eth { * @of_node: Our devicetree node * @hw: Backpointer to our main datastruture * @hw_stats: Packet statistics counter - * @phy_dev: The attached PHY if available * @trgmii Indicate if the MAC uses TRGMII connected to internal switch */ @@ -567,7 +566,6 @@ struct mtk_mac { struct device_node *of_node; struct mtk_eth *hw; struct mtk_hw_stats *hw_stats; - struct phy_device *phy_dev; __be32 hwlro_ip[MTK_MAX_LRO_IP_CNT]; int hwlro_ip_cnt; bool trgmii; |