aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-05-22 19:06:08 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-05-22 19:06:08 +0000
commitb9351281658ec0fd24302ef04f910922ea271972 (patch)
tree96dc39fd8969dcad222fca58cda563f6728d5534 /target
parent900a3413092ff7f127c31ae5c1d505925982d22d (diff)
downloadupstream-b9351281658ec0fd24302ef04f910922ea271972.tar.gz
upstream-b9351281658ec0fd24302ef04f910922ea271972.tar.bz2
upstream-b9351281658ec0fd24302ef04f910922ea271972.zip
[ar71xx] use netdev_ops on 2.6.30
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15998 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/patches-2.6.30/802-ag71xx-use-netdev-ops.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-2.6.30/802-ag71xx-use-netdev-ops.patch b/target/linux/ar71xx/patches-2.6.30/802-ag71xx-use-netdev-ops.patch
new file mode 100644
index 0000000000..9bfb2e08d3
--- /dev/null
+++ b/target/linux/ar71xx/patches-2.6.30/802-ag71xx-use-netdev-ops.patch
@@ -0,0 +1,33 @@
+--- a/drivers/net/ag71xx/ag71xx_main.c
++++ b/drivers/net/ag71xx/ag71xx_main.c
+@@ -777,6 +777,17 @@ static void ag71xx_set_multicast_list(st
+ /* TODO */
+ }
+
++static const struct net_device_ops ag71xx_netdev_ops = {
++ .ndo_open = ag71xx_open,
++ .ndo_stop = ag71xx_stop,
++ .ndo_start_xmit = ag71xx_hard_start_xmit,
++ .ndo_set_multicast_list = ag71xx_set_multicast_list,
++ .ndo_do_ioctl = ag71xx_do_ioctl,
++ .ndo_change_mtu = eth_change_mtu,
++ .ndo_set_mac_address = eth_mac_addr,
++ .ndo_validate_addr = eth_validate_addr,
++};
++
+ static int __init ag71xx_probe(struct platform_device *pdev)
+ {
+ struct net_device *dev;
+@@ -861,11 +872,7 @@ static int __init ag71xx_probe(struct pl
+ }
+
+ dev->base_addr = (unsigned long)ag->mac_base;
+- dev->open = ag71xx_open;
+- dev->stop = ag71xx_stop;
+- dev->hard_start_xmit = ag71xx_hard_start_xmit;
+- dev->set_multicast_list = ag71xx_set_multicast_list;
+- dev->do_ioctl = ag71xx_do_ioctl;
++ dev->netdev_ops = &ag71xx_netdev_ops;
+ dev->ethtool_ops = &ag71xx_ethtool_ops;
+
+ dev->tx_timeout = ag71xx_tx_timeout;