aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/platforms/iss/network.c22
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
624static int driver_registered; 624static int driver_registered;
625 625
626static 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
626static int iss_net_configure(int index, char *init) 639static 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