From: David S. Miller <davem@davemloft.net>
Date: Thu, 22 Jul 2010 04:10:49 +0000 (-0700)
Subject: r6040: Fix args to phy_mii_ioctl().
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4cfa580e7eebb8694b875d2caff3b989ada2efac;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git

r6040: Fix args to phy_mii_ioctl().

Reported by Stephen Rothwell.

Signed-off-by: David S. Miller <davem@davemloft.net>
---

diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c
index 7d482a2316ac..142c381e1d73 100644
--- a/drivers/net/r6040.c
+++ b/drivers/net/r6040.c
@@ -510,7 +510,7 @@ static int r6040_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
 	if (!lp->phydev)
 		return -EINVAL;
 
-	return phy_mii_ioctl(lp->phydev, if_mii(rq), cmd);
+	return phy_mii_ioctl(lp->phydev, rq, cmd);
 }
 
 static int r6040_rx(struct net_device *dev, int limit)