mv643xx_eth: fix 'netdev_priv(dev) == dev->priv' assumption
authorLennert Buytenhek <buytenh@wantstofly.org>
Sun, 24 Aug 2008 03:59:16 +0000 (05:59 +0200)
committerLennert Buytenhek <buytenh@marvell.com>
Fri, 5 Sep 2008 04:33:57 +0000 (06:33 +0200)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
drivers/net/mv643xx_eth.c

index 0a18b9e96da152db6c55eaa0026cc578863226eb..deee66dcd0adee9793947c9dc4d6b7a0b2dde24a 100644 (file)
@@ -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);