]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
mv643xx_eth: Fix build regression.
authorDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2011 22:19:02 +0000 (15:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2011 22:19:02 +0000 (15:19 -0700)
From Stephen Rothwell:

--------------------
After merging the final tree, today's linux-next build (powerpc chrp32_defconfig)
failed like this:

drivers/net/mv643xx_eth.c: In function 'port_start':
drivers/net/mv643xx_eth.c:2250: error: 'dev' undeclared (first use in this function)

Caused by commit aad59c431b77 ("net: mv643xx: convert to hw_features").
--------------------

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mv643xx_eth.c

index 29605a34d4c1cfd3d48f1555c71a44d54bd53ac6..57c2ac04f9ffa2f03f12236626dd837f575e63e4 100644 (file)
@@ -2247,7 +2247,7 @@ static void port_start(struct mv643xx_eth_private *mp)
         * frames to RX queue #0, and include the pseudo-header when
         * calculating receive checksums.
         */
-       mv643xx_eth_set_features(dev, dev->features);
+       mv643xx_eth_set_features(mp->dev, mp->dev->features);
 
        /*
         * Treat BPDUs as normal multicasts, and disable partition mode.