Commit 32670c36d0222e2fdfa9673bb878e0f347411cd4

Authored by Stephen Hemminger
Committed by David S. Miller
1 parent b20417db31

netdev: smc9194 convert to net_device_ops

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 12 additions and 5 deletions Side-by-side Diff

drivers/net/smc9194.c
... ... @@ -831,6 +831,17 @@
831 831 #endif
832 832 }
833 833  
  834 +static const struct net_device_ops smc_netdev_ops = {
  835 + .ndo_open = smc_open,
  836 + .ndo_stop = smc_close,
  837 + .ndo_start_xmit = smc_wait_to_send_packet,
  838 + .ndo_tx_timeout = smc_timeout,
  839 + .ndo_set_multicast_list = smc_set_multicast_list,
  840 + .ndo_change_mtu = eth_change_mtu,
  841 + .ndo_set_mac_address = eth_mac_addr,
  842 + .ndo_validate_addr = eth_validate_addr,
  843 +};
  844 +
834 845 /*----------------------------------------------------------------------
835 846 . Function: smc_probe( int ioaddr )
836 847 .
837 848  
... ... @@ -1044,12 +1055,8 @@
1044 1055 goto err_out;
1045 1056 }
1046 1057  
1047   - dev->open = smc_open;
1048   - dev->stop = smc_close;
1049   - dev->hard_start_xmit = smc_wait_to_send_packet;
1050   - dev->tx_timeout = smc_timeout;
  1058 + dev->netdev_ops = &smc_netdev_ops;
1051 1059 dev->watchdog_timeo = HZ/20;
1052   - dev->set_multicast_list = smc_set_multicast_list;
1053 1060  
1054 1061 return 0;
1055 1062