1 --- a/drivers/net/ag71xx/ag71xx_main.c
2 +++ b/drivers/net/ag71xx/ag71xx_main.c
3 @@ -791,6 +791,17 @@ static void ag71xx_set_multicast_list(st
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,
18 static int __init ag71xx_probe(struct platform_device *pdev)
20 struct net_device *dev;
21 @@ -875,11 +886,7 @@ static int __init ag71xx_probe(struct pl
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;
33 dev->tx_timeout = ag71xx_tx_timeout;