diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-01-07 20:34:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-07 20:34:36 -0500 |
commit | b8aa76a2bd9782e1a45e96602812910d5cfe7b52 (patch) | |
tree | 8a1ac18a31723e1d180b7d317a3b49c7103425e7 /drivers/net/de600.c | |
parent | 1f5ec79b8ec357516fbe14904a47f619bb3b543d (diff) |
de600: update to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/de600.c')
-rw-r--r-- | drivers/net/de600.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/net/de600.c b/drivers/net/de600.c index 970f820ba814..de63f1d41d32 100644 --- a/drivers/net/de600.c +++ b/drivers/net/de600.c | |||
@@ -378,6 +378,16 @@ static void de600_rx_intr(struct net_device *dev) | |||
378 | */ | 378 | */ |
379 | } | 379 | } |
380 | 380 | ||
381 | static const struct net_device_ops de600_netdev_ops = { | ||
382 | .ndo_open = de600_open, | ||
383 | .ndo_stop = de600_close, | ||
384 | .ndo_start_xmit = de600_start_xmit, | ||
385 | .ndo_change_mtu = eth_change_mtu, | ||
386 | .ndo_set_mac_address = eth_mac_addr, | ||
387 | .ndo_validate_addr = eth_validate_addr, | ||
388 | }; | ||
389 | |||
390 | |||
381 | static struct net_device * __init de600_probe(void) | 391 | static struct net_device * __init de600_probe(void) |
382 | { | 392 | { |
383 | int i; | 393 | int i; |
@@ -439,9 +449,7 @@ static struct net_device * __init de600_probe(void) | |||
439 | 449 | ||
440 | printk(", Ethernet Address: %pM\n", dev->dev_addr); | 450 | printk(", Ethernet Address: %pM\n", dev->dev_addr); |
441 | 451 | ||
442 | dev->open = de600_open; | 452 | dev->netdev_ops = &de600_netdev_ops; |
443 | dev->stop = de600_close; | ||
444 | dev->hard_start_xmit = &de600_start_xmit; | ||
445 | 453 | ||
446 | dev->flags&=~IFF_MULTICAST; | 454 | dev->flags&=~IFF_MULTICAST; |
447 | 455 | ||