diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:34:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:34:36 -0500 |
commit | a7c243b544c0e9f6775c2607decaa59d54fb9e11 (patch) | |
tree | 86fdb4d2d6cef932af7497f28827e7d52b29e48c /arch/xtensa | |
parent | 7df446e7e043b2ba5fd5de42529f9d797e8b501a (diff) | |
parent | f406db8cba6bbce42b96490e6d31bdec229ad994 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'arch/xtensa')
-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 | ||