aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibm_newemac
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-09-03 06:38:33 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-03 23:02:09 -0400
commitaae5e7c30fc660c50dfecbdd745799b05af90f01 (patch)
treef8bf4c313358206189afafc0a8fb9e544a940519 /drivers/net/ibm_newemac
parentc23ddf8f22fc2c871ce476ff917d1208bbe4f3de (diff)
netdev: Remove SIOCDEVPRIVATE aliases for MDIO ioctls
The standard MDIO ioctl numbers are well-established and these should no longer be needed. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ibm_newemac')
-rw-r--r--drivers/net/ibm_newemac/core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ibm_newemac/core.c b/drivers/net/ibm_newemac/core.c
index d7579e4feefc..24ae671e4cb2 100644
--- a/drivers/net/ibm_newemac/core.c
+++ b/drivers/net/ibm_newemac/core.c
@@ -2218,16 +2218,13 @@ static int emac_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd)
2218 2218
2219 switch (cmd) { 2219 switch (cmd) {
2220 case SIOCGMIIPHY: 2220 case SIOCGMIIPHY:
2221 case SIOCDEVPRIVATE:
2222 data[0] = dev->phy.address; 2221 data[0] = dev->phy.address;
2223 /* Fall through */ 2222 /* Fall through */
2224 case SIOCGMIIREG: 2223 case SIOCGMIIREG:
2225 case SIOCDEVPRIVATE + 1:
2226 data[3] = emac_mdio_read(ndev, dev->phy.address, data[1]); 2224 data[3] = emac_mdio_read(ndev, dev->phy.address, data[1]);
2227 return 0; 2225 return 0;
2228 2226
2229 case SIOCSMIIREG: 2227 case SIOCSMIIREG:
2230 case SIOCDEVPRIVATE + 2:
2231 if (!capable(CAP_NET_ADMIN)) 2228 if (!capable(CAP_NET_ADMIN))
2232 return -EPERM; 2229 return -EPERM;
2233 emac_mdio_write(ndev, dev->phy.address, data[1], data[2]); 2230 emac_mdio_write(ndev, dev->phy.address, data[1], data[2]);