- if (!aup->phy_dev) return -EINVAL; // PHY not controllable
-
-- return phy_mii_ioctl(aup->phy_dev, if_mii(rq), cmd);
-+ switch (cmd) {
-+ default:
-+ rc = phy_mii_ioctl(aup->phy_dev, data, cmd);
-+ break;
-+ }
-+
-+ return rc;
- }
-
- static struct net_device_stats *au1000_get_stats(struct net_device *dev)