summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-08-24 05:59:16 +0200
committerLennert Buytenhek <buytenh@marvell.com>2008-09-05 06:33:57 +0200
commitb98738412372d6bcba1548b6b439f49023e25a34 (patch)
tree8eb9af7f6a30f9ad87ed88f8924bb49d75c683c9
parentLinux 2.6.27-rc5 (diff)
downloadlinux-b98738412372d6bcba1548b6b439f49023e25a34.tar.xz
linux-b98738412372d6bcba1548b6b439f49023e25a34.zip
mv643xx_eth: fix 'netdev_priv(dev) == dev->priv' assumption
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
-rw-r--r--drivers/net/mv643xx_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index 0a18b9e96da1..deee66dcd0ad 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -1277,7 +1277,7 @@ static void mv643xx_eth_get_ethtool_stats(struct net_device *dev,
struct ethtool_stats *stats,
uint64_t *data)
{
- struct mv643xx_eth_private *mp = dev->priv;
+ struct mv643xx_eth_private *mp = netdev_priv(dev);
int i;
mib_counters_update(mp);