Commit 15c1de8a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fix usbnet for older versions of gcc

parent eb157e91
...@@ -2482,12 +2482,14 @@ static int usbnet_ioctl (struct net_device *net, struct ifreq *rq, int cmd) ...@@ -2482,12 +2482,14 @@ static int usbnet_ioctl (struct net_device *net, struct ifreq *rq, int cmd)
return usbnet_ethtool_ioctl (net, (void __user *)rq->ifr_data); return usbnet_ethtool_ioctl (net, (void __user *)rq->ifr_data);
#ifdef NEED_MII #ifdef NEED_MII
{
struct usbnet *dev = (struct usbnet *)net->priv; struct usbnet *dev = (struct usbnet *)net->priv;
if (dev->mii.mdio_read != NULL && dev->mii.mdio_write != NULL) if (dev->mii.mdio_read != NULL && dev->mii.mdio_write != NULL)
return generic_mii_ioctl(&dev->mii, return generic_mii_ioctl(&dev->mii,
(struct mii_ioctl_data *) &rq->ifr_data, (struct mii_ioctl_data *) &rq->ifr_data,
cmd, NULL); cmd, NULL);
}
#endif #endif
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment