diff options
author | Chris Zankel <chris@zankel.net> | 2010-05-02 11:37:20 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2010-05-02 11:37:20 -0400 |
commit | 0a972468ec3f8a5f86193a8f124f7b04cf600c3c (patch) | |
tree | 541a5e8fb18c93427a81544b92a5556a7c9fdb21 | |
parent | 4573e398d591a2fe6c600908578fd31401746529 (diff) |
xtensa: Fix the network driver for the simulator target
Network methods have moved to the net_device_ops structure.
Signed-off-by: Chris Zankel <chris@zankel.net>
-rw-r--r-- | arch/xtensa/platforms/iss/network.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/arch/xtensa/platforms/iss/network.c b/arch/xtensa/platforms/iss/network.c index 87e218f98ef4..f717e20d961b 100644 --- a/arch/xtensa/platforms/iss/network.c +++ b/arch/xtensa/platforms/iss/network.c | |||
@@ -623,6 +623,19 @@ static struct platform_driver iss_net_driver = { | |||
623 | 623 | ||
624 | static int driver_registered; | 624 | static int driver_registered; |
625 | 625 | ||
626 | static const struct net_device_ops iss_netdev_ops = { | ||
627 | .ndo_open = iss_net_open, | ||
628 | .ndo_stop = iss_net_close, | ||
629 | .ndo_get_stats = iss_net_get_stats, | ||
630 | .ndo_start_xmit = iss_net_start_xmit, | ||
631 | .ndo_validate_addr = eth_validate_addr, | ||
632 | .ndo_change_mtu = iss_net_change_mtu, | ||
633 | .ndo_set_mac_address = iss_net_set_mac, | ||
634 | //.ndo_do_ioctl = iss_net_ioctl, | ||
635 | .ndo_tx_timeout = iss_net_tx_timeout, | ||
636 | .ndo_set_multicast_list = iss_net_set_multicast_list, | ||
637 | }; | ||
638 | |||
626 | static int iss_net_configure(int index, char *init) | 639 | static int iss_net_configure(int index, char *init) |
627 | { | 640 | { |
628 | struct net_device *dev; | 641 | struct net_device *dev; |
@@ -686,15 +699,8 @@ static int iss_net_configure(int index, char *init) | |||
686 | */ | 699 | */ |
687 | snprintf(dev->name, sizeof dev->name, "eth%d", index); | 700 | snprintf(dev->name, sizeof dev->name, "eth%d", index); |
688 | 701 | ||
702 | dev->netdev_ops = &iss_netdev_ops; | ||
689 | dev->mtu = lp->mtu; | 703 | dev->mtu = lp->mtu; |
690 | dev->open = iss_net_open; | ||
691 | dev->hard_start_xmit = iss_net_start_xmit; | ||
692 | dev->stop = iss_net_close; | ||
693 | dev->get_stats = iss_net_get_stats; | ||
694 | dev->set_multicast_list = iss_net_set_multicast_list; | ||
695 | dev->tx_timeout = iss_net_tx_timeout; | ||
696 | dev->set_mac_address = iss_net_set_mac; | ||
697 | dev->change_mtu = iss_net_change_mtu; | ||
698 | dev->watchdog_timeo = (HZ >> 1); | 704 | dev->watchdog_timeo = (HZ >> 1); |
699 | dev->irq = -1; | 705 | dev->irq = -1; |
700 | 706 | ||