From c57c9b688ba29ea6ef6cb05a25a245c002d53949 Mon Sep 17 00:00:00 2001 From: kaloz Date: Thu, 28 May 2009 09:49:40 +0000 Subject: renumber sibyte patches git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16126 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../sibyte/patches/102-sbmac_net_device_opts.patch | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 target/linux/sibyte/patches/102-sbmac_net_device_opts.patch (limited to 'target/linux/sibyte/patches/102-sbmac_net_device_opts.patch') diff --git a/target/linux/sibyte/patches/102-sbmac_net_device_opts.patch b/target/linux/sibyte/patches/102-sbmac_net_device_opts.patch new file mode 100644 index 000000000..8171ef367 --- /dev/null +++ b/target/linux/sibyte/patches/102-sbmac_net_device_opts.patch @@ -0,0 +1,49 @@ +--- a/drivers/net/sb1250-mac.c ++++ b/drivers/net/sb1250-mac.c +@@ -2271,6 +2271,22 @@ static int sb1250_change_mtu(struct net_ + return 0; + } + ++static const struct net_device_ops sbmac_netdev_ops = { ++ .ndo_open = sbmac_open, ++ .ndo_stop = sbmac_close, ++ .ndo_start_xmit = sbmac_start_tx, ++ .ndo_tx_timeout = sbmac_tx_timeout, ++ .ndo_do_ioctl = sbmac_mii_ioctl, ++ .ndo_set_multicast_list = sbmac_set_rx_mode, ++ .ndo_change_mtu = sb1250_change_mtu, ++ .ndo_validate_addr = eth_validate_addr, ++ .ndo_set_mac_address = eth_mac_addr, ++ ++#ifdef CONFIG_NET_POLL_CONTROLLER ++ .ndo_poll_controller = sbmac_netpoll, ++#endif ++}; ++ + /********************************************************************** + * SBMAC_INIT(dev) + * +@@ -2327,21 +2343,12 @@ static int sbmac_init(struct platform_de + + spin_lock_init(&(sc->sbm_lock)); + +- dev->open = sbmac_open; +- dev->hard_start_xmit = sbmac_start_tx; +- dev->stop = sbmac_close; +- dev->set_multicast_list = sbmac_set_rx_mode; +- dev->do_ioctl = sbmac_mii_ioctl; +- dev->tx_timeout = sbmac_tx_timeout; ++ dev->netdev_ops = &sbmac_netdev_ops; ++ + dev->watchdog_timeo = TX_TIMEOUT; + + netif_napi_add(dev, &sc->napi, sbmac_poll, 16); + +- dev->change_mtu = sb1250_change_mtu; +-#ifdef CONFIG_NET_POLL_CONTROLLER +- dev->poll_controller = sbmac_netpoll; +-#endif +- + dev->irq = UNIT_INT(idx); + + /* This is needed for PASS2 for Rx H/W checksum feature */ -- cgit v1.2.3