diff options
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 8fdca56bb08f..64ca2a6fa0d4 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -164,10 +164,9 @@ out: | |||
164 | static int dsa_slave_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | 164 | static int dsa_slave_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) |
165 | { | 165 | { |
166 | struct dsa_slave_priv *p = netdev_priv(dev); | 166 | struct dsa_slave_priv *p = netdev_priv(dev); |
167 | struct mii_ioctl_data *mii_data = if_mii(ifr); | ||
168 | 167 | ||
169 | if (p->phy != NULL) | 168 | if (p->phy != NULL) |
170 | return phy_mii_ioctl(p->phy, mii_data, cmd); | 169 | return phy_mii_ioctl(p->phy, ifr, cmd); |
171 | 170 | ||
172 | return -EOPNOTSUPP; | 171 | return -EOPNOTSUPP; |
173 | } | 172 | } |