pxa168_eth: update call to phy_mii_ioctl()
authorDan Carpenter <error27@gmail.com>
Tue, 24 Aug 2010 06:54:20 +0000 (06:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Aug 2010 21:50:27 +0000 (14:50 -0700)
The phy_mii_ioctl() function changed recently.  It now takes a struct
ifreq pointer directly.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pxa168_eth.c

index 302fb480374bfd144b06c2fe05035ccf7335ea04..f324b767f6856f7466fee7f62863df32183f33c7 100644 (file)
@@ -1350,7 +1350,7 @@ static int pxa168_eth_do_ioctl(struct net_device *dev, struct ifreq *ifr,
 {
        struct pxa168_eth_private *pep = netdev_priv(dev);
        if (pep->phy != NULL)
-               return phy_mii_ioctl(pep->phy, if_mii(ifr), cmd);
+               return phy_mii_ioctl(pep->phy, ifr, cmd);
 
        return -EOPNOTSUPP;
 }