diff options
-rw-r--r-- | drivers/net/phy/phy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 45cc2914d347..0433fcd00943 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c | |||
@@ -366,7 +366,8 @@ int phy_mii_ioctl(struct phy_device *phydev, | |||
366 | switch (cmd) { | 366 | switch (cmd) { |
367 | case SIOCGMIIPHY: | 367 | case SIOCGMIIPHY: |
368 | mii_data->phy_id = phydev->addr; | 368 | mii_data->phy_id = phydev->addr; |
369 | break; | 369 | /* fall through */ |
370 | |||
370 | case SIOCGMIIREG: | 371 | case SIOCGMIIREG: |
371 | mii_data->val_out = phy_read(phydev, mii_data->reg_num); | 372 | mii_data->val_out = phy_read(phydev, mii_data->reg_num); |
372 | break; | 373 | break; |
@@ -413,7 +414,7 @@ int phy_mii_ioctl(struct phy_device *phydev, | |||
413 | break; | 414 | break; |
414 | 415 | ||
415 | default: | 416 | default: |
416 | return -ENOTTY; | 417 | return -EOPNOTSUPP; |
417 | } | 418 | } |
418 | 419 | ||
419 | return 0; | 420 | return 0; |