diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-21 20:32:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 20:32:15 -0500 |
commit | 1abd266f091e4f281a7c1e8813106fdf1528bb56 (patch) | |
tree | 931a1cd1bb3207abb077ee7125ac1dd87af8c234 /drivers/net/netxen/netxen_nic_ethtool.c | |
parent | 876526443e64ae15bc3715dd6fbe8b9deadf89bc (diff) |
netxen: convert to net_device_ops
Convert driver to new net_device_ops. Compile tested only.
Had to do some refactoring on multicast_list.
Fix ethtool restart to propogate error code.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_ethtool.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_ethtool.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/netxen/netxen_nic_ethtool.c b/drivers/net/netxen/netxen_nic_ethtool.c index b974ca0fc530..e45ce2951729 100644 --- a/drivers/net/netxen/netxen_nic_ethtool.c +++ b/drivers/net/netxen/netxen_nic_ethtool.c | |||
@@ -275,11 +275,11 @@ netxen_nic_set_settings(struct net_device *dev, struct ethtool_cmd *ecmd) | |||
275 | } else | 275 | } else |
276 | return -EOPNOTSUPP; | 276 | return -EOPNOTSUPP; |
277 | 277 | ||
278 | if (netif_running(dev)) { | 278 | if (!netif_running(dev)) |
279 | dev->stop(dev); | 279 | return 0; |
280 | dev->open(dev); | 280 | |
281 | } | 281 | dev->netdev_ops->ndo_stop(dev); |
282 | return 0; | 282 | return dev->netdev_ops->ndo_open(dev); |
283 | } | 283 | } |
284 | 284 | ||
285 | static int netxen_nic_get_regs_len(struct net_device *dev) | 285 | static int netxen_nic_get_regs_len(struct net_device *dev) |