From: nbd Date: Sun, 24 Jul 2011 09:11:10 +0000 (+0000) Subject: atheros: fix mii phy read/write ioctl X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/79860ef18f23d1712cb395e5b871e5b724256abf atheros: fix mii phy read/write ioctl Signed-off-by: Marek Lindner git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27747 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/atheros/patches-2.6.37/110-ar2313_ethernet.patch b/target/linux/atheros/patches-2.6.37/110-ar2313_ethernet.patch index 42d9229b1..428bd478c 100644 --- a/target/linux/atheros/patches-2.6.37/110-ar2313_ethernet.patch +++ b/target/linux/atheros/patches-2.6.37/110-ar2313_ethernet.patch @@ -1198,7 +1198,7 @@ + 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; diff --git a/target/linux/atheros/patches-2.6.38/110-ar2313_ethernet.patch b/target/linux/atheros/patches-2.6.38/110-ar2313_ethernet.patch index 42d9229b1..428bd478c 100644 --- a/target/linux/atheros/patches-2.6.38/110-ar2313_ethernet.patch +++ b/target/linux/atheros/patches-2.6.38/110-ar2313_ethernet.patch @@ -1198,7 +1198,7 @@ + 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;