Skip to content

Commit 4cfa580

Browse files
committed
r6040: Fix args to phy_mii_ioctl().
Reported by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4c3e5ed commit 4cfa580

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/r6040.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static int r6040_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
510510
if (!lp->phydev)
511511
return -EINVAL;
512512

513-
return phy_mii_ioctl(lp->phydev, if_mii(rq), cmd);
513+
return phy_mii_ioctl(lp->phydev, rq, cmd);
514514
}
515515

516516
static int r6040_rx(struct net_device *dev, int limit)

0 commit comments

Comments
 (0)