diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-05-25 12:06:14 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-06-05 10:12:30 +0200 |
commit | bf58bc3bd85072d684c9bf12e566164348979277 (patch) | |
tree | 7227e7b1fe0ceda0525ed301b061b74b7c37f3a8 /target/linux/ramips/files-4.14/drivers | |
parent | 52156b49688910cc6b59f5b41503cf102510161b (diff) | |
download | upstream-bf58bc3bd85072d684c9bf12e566164348979277.tar.gz upstream-bf58bc3bd85072d684c9bf12e566164348979277.tar.bz2 upstream-bf58bc3bd85072d684c9bf12e566164348979277.zip |
ramips: ethernet: 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>
Cc: John Crispin <john@phrozen.org>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/ramips/files-4.14/drivers')
-rw-r--r-- | target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 10d9fd7a3e..b2c3d32c55 100644 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1411,19 +1411,8 @@ static int fe_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) if (!priv->phy_dev) return -ENODEV; - switch (cmd) { - case SIOCETHTOOL: - return phy_ethtool_ioctl(priv->phy_dev, - (void *) ifr->ifr_data); - case SIOCGMIIPHY: - case SIOCGMIIREG: - case SIOCSMIIREG: - return phy_mii_ioctl(priv->phy_dev, ifr, cmd); - default: - break; - } - return -EOPNOTSUPP; + return phy_mii_ioctl(priv->phy_dev, ifr, cmd); } static int fe_change_mtu(struct net_device *dev, int new_mtu) |