Skip to content

Commit

Permalink
r6040: Fix args to phy_mii_ioctl().
Browse files Browse the repository at this point in the history
Reported by Stephen Rothwell.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 22, 2010
1 parent 4c3e5ed commit 4cfa580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4cfa580

Please sign in to comment.