diff options
author | Philippe Reynes <tremyfr@gmail.com> | 2016-06-19 22:37:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-22 22:23:29 +0200 |
commit | b21fcb259313bcf7d4f73ecd5e44948995c8957c (patch) | |
tree | cb9c0aa0f0b6d20c70a8777e6c89d93d7d2f38a0 /drivers/net/ethernet/broadcom/bgmac.h | |
parent | net: ethernet: altera_tse: use phy_ethtool_{get|set}_link_ksettings (diff) | |
download | linux-b21fcb259313bcf7d4f73ecd5e44948995c8957c.tar.xz linux-b21fcb259313bcf7d4f73ecd5e44948995c8957c.zip |
net: ethernet: bgmac: 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/broadcom/bgmac.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bgmac.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.h b/drivers/net/ethernet/broadcom/bgmac.h index 853d72b132d1..99beb181f577 100644 --- a/drivers/net/ethernet/broadcom/bgmac.h +++ b/drivers/net/ethernet/broadcom/bgmac.h @@ -441,7 +441,6 @@ struct bgmac { struct net_device *net_dev; struct napi_struct napi; struct mii_bus *mii_bus; - struct phy_device *phy_dev; /* DMA */ struct bgmac_dma_ring tx_ring[BGMAC_MAX_TX_RINGS]; |