aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h
diff options
context:
space:
mode:
authorPhilippe Reynes <tremyfr@gmail.com>2016-06-25 22:05:26 +0200
committerDavid S. Miller <davem@davemloft.net>2016-06-28 09:12:35 -0400
commit2ebc440a1f2be7c572c8ea174d1b2a6a0d4e41a3 (patch)
treecb2da7ea3d872db9a6108c5eb0ac72f19deeae57 /drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h
parentnet: ethernet: r6040: use phy_ethtool_{get|set}_link_ksettings (diff)
downloadlinux-dev-2ebc440a1f2be7c572c8ea174d1b2a6a0d4e41a3.tar.xz
linux-dev-2ebc440a1f2be7c572c8ea174d1b2a6a0d4e41a3.zip
net: ethernet: sxgbe: 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/samsung/sxgbe/sxgbe_common.h')
-rw-r--r--drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h b/drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h
index 45019649bbbd..5cb51b609f02 100644
--- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h
+++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h
@@ -475,7 +475,6 @@ struct sxgbe_priv_data {
int rxcsum_insertion;
spinlock_t stats_lock; /* lock for tx/rx statatics */
- struct phy_device *phydev;
int oldlink;
int speed;
int oldduplex;