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 42d9229b116b13deb54732fc40057ad42312731d..428bd478c65e03f2ca2077be5d9057f14f61ea2e 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 42d9229b116b13deb54732fc40057ad42312731d..428bd478c65e03f2ca2077be5d9057f14f61ea2e 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;