Commit 32670c36 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

netdev: smc9194 convert to net_device_ops

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b20417db
...@@ -831,6 +831,17 @@ static int __init smc_findirq(int ioaddr) ...@@ -831,6 +831,17 @@ static int __init smc_findirq(int ioaddr)
#endif #endif
} }
static const struct net_device_ops smc_netdev_ops = {
.ndo_open = smc_open,
.ndo_stop = smc_close,
.ndo_start_xmit = smc_wait_to_send_packet,
.ndo_tx_timeout = smc_timeout,
.ndo_set_multicast_list = smc_set_multicast_list,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};
/*---------------------------------------------------------------------- /*----------------------------------------------------------------------
. Function: smc_probe( int ioaddr ) . Function: smc_probe( int ioaddr )
. .
...@@ -1044,12 +1055,8 @@ static int __init smc_probe(struct net_device *dev, int ioaddr) ...@@ -1044,12 +1055,8 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
goto err_out; goto err_out;
} }
dev->open = smc_open; dev->netdev_ops = &smc_netdev_ops;
dev->stop = smc_close;
dev->hard_start_xmit = smc_wait_to_send_packet;
dev->tx_timeout = smc_timeout;
dev->watchdog_timeo = HZ/20; dev->watchdog_timeo = HZ/20;
dev->set_multicast_list = smc_set_multicast_list;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment