]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
r6040: Fix args to phy_mii_ioctl().
authorDavid S. Miller <davem@davemloft.net>
Thu, 22 Jul 2010 04:10:49 +0000 (21:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jul 2010 04:10:49 +0000 (21:10 -0700)
Reported by Stephen Rothwell.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r6040.c

index 7d482a2316acf65c922f6696400ad2db17f4090d..142c381e1d73e0644eac3df74fea212385ad1115 100644 (file)
@@ -510,7 +510,7 @@ static int r6040_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
        if (!lp->phydev)
                return -EINVAL;
 
-       return phy_mii_ioctl(lp->phydev, if_mii(rq), cmd);
+       return phy_mii_ioctl(lp->phydev, rq, cmd);
 }
 
 static int r6040_rx(struct net_device *dev, int limit)