diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2009-01-09 14:01:10 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 23:02:20 +0100 |
commit | a1799af4d7deefccdaa9d222a886fa1373dbb49a (patch) | |
tree | d9277bf2fb817f3c102be2d68a9098d8028cec56 /drivers/net/arcnet/com20020.c | |
parent | arcnet: convert to net_device_ops (diff) | |
download | linux-a1799af4d7deefccdaa9d222a886fa1373dbb49a.tar.xz linux-a1799af4d7deefccdaa9d222a886fa1373dbb49a.zip |
com20020: convert to net_devic_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/arcnet/com20020.c')
-rw-r--r-- | drivers/net/arcnet/com20020.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c index 103688358fb8..bbe8f2ccdadb 100644 --- a/drivers/net/arcnet/com20020.c +++ b/drivers/net/arcnet/com20020.c @@ -149,6 +149,14 @@ int com20020_check(struct net_device *dev) return 0; } +const struct net_device_ops com20020_netdev_ops = { + .ndo_open = arcnet_open, + .ndo_stop = arcnet_close, + .ndo_start_xmit = arcnet_send_packet, + .ndo_tx_timeout = arcnet_timeout, + .ndo_set_multicast_list = com20020_set_mc_list, +}; + /* Set up the struct net_device associated with this card. Called after * probing succeeds. */ @@ -170,8 +178,6 @@ int com20020_found(struct net_device *dev, int shared) lp->hw.copy_from_card = com20020_copy_from_card; lp->hw.close = com20020_close; - dev->set_multicast_list = com20020_set_mc_list; - if (!dev->dev_addr[0]) dev->dev_addr[0] = inb(ioaddr + BUS_ALIGN*8); /* FIXME: do this some other way! */ |