diff options
author | Philippe Reynes <tremyfr@gmail.com> | 2016-10-03 09:28:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-12 08:40:25 +0300 |
commit | d6d50c7ea42d3659782695bfebf4ae6548d00db5 (patch) | |
tree | 38a1c43baf41aac0cc61e2e462f6eeee0cd23114 /drivers/net/ethernet/stmicro/stmmac/stmmac.h | |
parent | a54e1612bc3dd4a3974b69a6043dd4ddbab14e6d (diff) | |
download | linux-d6d50c7ea42d3659782695bfebf4ae6548d00db5.tar.xz |
net: stmmac: 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/stmicro/stmmac/stmmac.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h index 8dc9056c1001..f94e0282451b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h @@ -90,7 +90,6 @@ struct stmmac_priv { struct mac_device_info *hw; spinlock_t lock; - struct phy_device *phydev ____cacheline_aligned_in_smp; int oldlink; int speed; int oldduplex; |