diff options
Diffstat (limited to 'drivers/net/natsemi.c')
-rw-r--r-- | drivers/net/natsemi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/natsemi.c b/drivers/net/natsemi.c index bd41351e4e26..b52e5d98a3b7 100644 --- a/drivers/net/natsemi.c +++ b/drivers/net/natsemi.c | |||
@@ -3053,12 +3053,10 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
3053 | 3053 | ||
3054 | switch(cmd) { | 3054 | switch(cmd) { |
3055 | case SIOCGMIIPHY: /* Get address of MII PHY in use. */ | 3055 | case SIOCGMIIPHY: /* Get address of MII PHY in use. */ |
3056 | case SIOCDEVPRIVATE: /* for binary compat, remove in 2.5 */ | ||
3057 | data->phy_id = np->phy_addr_external; | 3056 | data->phy_id = np->phy_addr_external; |
3058 | /* Fall Through */ | 3057 | /* Fall Through */ |
3059 | 3058 | ||
3060 | case SIOCGMIIREG: /* Read MII PHY register. */ | 3059 | case SIOCGMIIREG: /* Read MII PHY register. */ |
3061 | case SIOCDEVPRIVATE+1: /* for binary compat, remove in 2.5 */ | ||
3062 | /* The phy_id is not enough to uniquely identify | 3060 | /* The phy_id is not enough to uniquely identify |
3063 | * the intended target. Therefore the command is sent to | 3061 | * the intended target. Therefore the command is sent to |
3064 | * the given mii on the current port. | 3062 | * the given mii on the current port. |
@@ -3077,7 +3075,6 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
3077 | return 0; | 3075 | return 0; |
3078 | 3076 | ||
3079 | case SIOCSMIIREG: /* Write MII PHY register. */ | 3077 | case SIOCSMIIREG: /* Write MII PHY register. */ |
3080 | case SIOCDEVPRIVATE+2: /* for binary compat, remove in 2.5 */ | ||
3081 | if (!capable(CAP_NET_ADMIN)) | 3078 | if (!capable(CAP_NET_ADMIN)) |
3082 | return -EPERM; | 3079 | return -EPERM; |
3083 | if (dev->if_port == PORT_TP) { | 3080 | if (dev->if_port == PORT_TP) { |