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)
return usbnet_ethtool_ioctl (net, (void __user *)rq->ifr_data);
#ifdef NEED_MII
{
struct usbnet *dev = (struct usbnet *)net->priv;
if (dev->mii.mdio_read != NULL && dev->mii.mdio_write != NULL)
return generic_mii_ioctl(&dev->mii,
(struct mii_ioctl_data *) &rq->ifr_data,
cmd, NULL);
}
#endif
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