VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / drivers / net / via-velocity.c
index 3356fd8..f053d2a 100644 (file)
@@ -2892,7 +2892,7 @@ static int velocity_mii_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd
        struct velocity_info *vptr = dev->priv;
        struct mac_regs * regs = vptr->mac_regs;
        unsigned long flags;
-       struct mii_ioctl_data *miidata = (struct mii_ioctl_data *) &(ifr->ifr_data);
+       struct mii_ioctl_data *miidata = if_mii(ifr);
        int err;
        
        switch (cmd) {