atheros: fix mii phy read/write ioctl
authorFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jul 2011 09:11:10 +0000 (09:11 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jul 2011 09:11:10 +0000 (09:11 +0000)
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
SVN-Revision: 27747

target/linux/atheros/patches-2.6.37/110-ar2313_ethernet.patch
target/linux/atheros/patches-2.6.38/110-ar2313_ethernet.patch

index 42d9229..428bd47 100644 (file)
 +      case SIOCGMIIPHY:
 +      case SIOCGMIIREG:
 +      case SIOCSMIIREG:
-+              return phy_mii_ioctl(sp->phy_dev, data, cmd);
++              return phy_mii_ioctl(sp->phy_dev, ifr, cmd);
 +
 +      default:
 +              break;
index 42d9229..428bd47 100644 (file)
 +      case SIOCGMIIPHY:
 +      case SIOCGMIIREG:
 +      case SIOCSMIIREG:
-+              return phy_mii_ioctl(sp->phy_dev, data, cmd);
++              return phy_mii_ioctl(sp->phy_dev, ifr, cmd);
 +
 +      default:
 +              break;