diff options
author | Christoph Hellwig <hch@lst.de> | 2005-11-07 00:20:36 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-11-09 01:10:10 -0500 |
commit | d3757472841cddfa2f905d1de76fabf1b98cfc1a (patch) | |
tree | 3e7169491a3f04cac8cf6ae25a6c695d6c31ee17 /arch/xtensa/platform-iss | |
parent | 76f2b4d98c3d6a88a260275acbede99c23a24d60 (diff) |
[PATCH] xtensa platform-iss network: remove no-op ioctl handler
If the driver ever wants to add ethtool support it should use
ethtool_ops.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'arch/xtensa/platform-iss')
-rw-r--r-- | arch/xtensa/platform-iss/network.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/arch/xtensa/platform-iss/network.c b/arch/xtensa/platform-iss/network.c index 0682ffd38175..96b9bb4a478d 100644 --- a/arch/xtensa/platform-iss/network.c +++ b/arch/xtensa/platform-iss/network.c | |||
@@ -611,38 +611,6 @@ static int iss_net_change_mtu(struct net_device *dev, int new_mtu) | |||
611 | return -EINVAL; | 611 | return -EINVAL; |
612 | } | 612 | } |
613 | 613 | ||
614 | static int iss_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | ||
615 | { | ||
616 | #if 0 | ||
617 | static const struct ethtool_drvinfo info = { | ||
618 | .cmd = ETHTOOL_GDRVINFO, | ||
619 | .driver = DRIVER_NAME, | ||
620 | .version = "42", | ||
621 | }; | ||
622 | void *useraddr; | ||
623 | u32 ethcmd; | ||
624 | |||
625 | switch (cmd) { | ||
626 | case SIOCETHTOOL: | ||
627 | useraddr = ifr->ifr_data; | ||
628 | if (copy_from_user(ðcmd, useraddr, sizeof(ethcmd))) | ||
629 | return -EFAULT; | ||
630 | |||
631 | switch (ethcmd) { | ||
632 | case ETHTOOL_GDRVINFO: | ||
633 | if (copy_to_user(useraddr, &info, sizeof(info))) | ||
634 | return -EFAULT; | ||
635 | return 0; | ||
636 | default: | ||
637 | return -EOPNOTSUPP; | ||
638 | } | ||
639 | default: | ||
640 | return -EINVAL; | ||
641 | } | ||
642 | #endif | ||
643 | return -EINVAL; | ||
644 | } | ||
645 | |||
646 | void iss_net_user_timer_expire(unsigned long _conn) | 614 | void iss_net_user_timer_expire(unsigned long _conn) |
647 | { | 615 | { |
648 | } | 616 | } |
@@ -730,7 +698,6 @@ static int iss_net_configure(int index, char *init) | |||
730 | dev->tx_timeout = iss_net_tx_timeout; | 698 | dev->tx_timeout = iss_net_tx_timeout; |
731 | dev->set_mac_address = iss_net_set_mac; | 699 | dev->set_mac_address = iss_net_set_mac; |
732 | dev->change_mtu = iss_net_change_mtu; | 700 | dev->change_mtu = iss_net_change_mtu; |
733 | dev->do_ioctl = iss_net_ioctl; | ||
734 | dev->watchdog_timeo = (HZ >> 1); | 701 | dev->watchdog_timeo = (HZ >> 1); |
735 | dev->irq = -1; | 702 | dev->irq = -1; |
736 | 703 | ||