[kernel] revert 15922 - add back 2.6.29 kernel support
[openwrt.git] / target / linux / ar71xx / patches-2.6.30 / 802-ag71xx-use-netdev-ops.patch
1 --- a/drivers/net/ag71xx/ag71xx_main.c
2 +++ b/drivers/net/ag71xx/ag71xx_main.c
3 @@ -777,6 +777,17 @@ static void ag71xx_set_multicast_list(st
4 /* TODO */
5 }
6
7 +static const struct net_device_ops ag71xx_netdev_ops = {
8 + .ndo_open = ag71xx_open,
9 + .ndo_stop = ag71xx_stop,
10 + .ndo_start_xmit = ag71xx_hard_start_xmit,
11 + .ndo_set_multicast_list = ag71xx_set_multicast_list,
12 + .ndo_do_ioctl = ag71xx_do_ioctl,
13 + .ndo_change_mtu = eth_change_mtu,
14 + .ndo_set_mac_address = eth_mac_addr,
15 + .ndo_validate_addr = eth_validate_addr,
16 +};
17 +
18 static int __init ag71xx_probe(struct platform_device *pdev)
19 {
20 struct net_device *dev;
21 @@ -861,11 +872,7 @@ static int __init ag71xx_probe(struct pl
22 }
23
24 dev->base_addr = (unsigned long)ag->mac_base;
25 - dev->open = ag71xx_open;
26 - dev->stop = ag71xx_stop;
27 - dev->hard_start_xmit = ag71xx_hard_start_xmit;
28 - dev->set_multicast_list = ag71xx_set_multicast_list;
29 - dev->do_ioctl = ag71xx_do_ioctl;
30 + dev->netdev_ops = &ag71xx_netdev_ops;
31 dev->ethtool_ops = &ag71xx_ethtool_ops;
32
33 dev->tx_timeout = ag71xx_tx_timeout;
This page took 0.043072 seconds and 5 git commands to generate.