diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-05-25 01:14:53 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-06-05 10:12:30 +0200 |
commit | eafe0611d9558a9c8ea74bdc91902f54074ea55b (patch) | |
tree | 8ff266839134510873d79332047bb80779e7b972 | |
parent | 5fee0a0923c49804705089f50b66abee6e5f5ad5 (diff) | |
download | upstream-eafe0611d9558a9c8ea74bdc91902f54074ea55b.tar.gz upstream-eafe0611d9558a9c8ea74bdc91902f54074ea55b.tar.bz2 upstream-eafe0611d9558a9c8ea74bdc91902f54074ea55b.zip |
ar71xx: ag71xx: remove unused SIOCETHTOOL ioctl handling
This ioctl is currently routed through generic interface code:
dev_ioctl
dev_ethtool
__ethtool_get_link_ksettings
phy_ethtool_ioctl
Cc: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index 542d4915b3..2c0b4d2410 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -845,18 +845,8 @@ err_drop: static int ag71xx_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) { struct ag71xx *ag = netdev_priv(dev); - int ret; switch (cmd) { - case SIOCETHTOOL: - if (ag->phy_dev == NULL) - break; - - spin_lock_irq(&ag->lock); - ret = phy_ethtool_ioctl(ag->phy_dev, (void *) ifr->ifr_data); - spin_unlock_irq(&ag->lock); - return ret; - case SIOCSIFHWADDR: if (copy_from_user (dev->dev_addr, ifr->ifr_data, sizeof(dev->dev_addr))) |