Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149766
b: refs/heads/master
c: 2160187
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 16, 2009
1 parent a1a2bfd commit ed17838
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec4e0cff9b8c97f5d63c8f1bdf7f44fb65fa8e3b
refs/heads/master: 2160187a0a1cdeeeff1d41f53333bea91c82f259
17 changes: 11 additions & 6 deletions trunk/drivers/net/sun3lance.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,16 @@ struct net_device * __init sun3lance_probe(int unit)
return ERR_PTR(err);
}

static const struct net_device_ops lance_netdev_ops = {
.ndo_open = lance_open,
.ndo_stop = lance_close,
.ndo_start_xmit = lance_start_xmit,
.ndo_set_multicast_list = set_multicast_list,
.ndo_set_mac_address = NULL,
.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
};

static int __init lance_probe( struct net_device *dev)
{
unsigned long ioaddr;
Expand Down Expand Up @@ -397,12 +407,7 @@ static int __init lance_probe( struct net_device *dev)
if (did_version++ == 0)
printk( version );

/* The LANCE-specific entries in the device structure. */
dev->open = &lance_open;
dev->hard_start_xmit = &lance_start_xmit;
dev->stop = &lance_close;
dev->set_multicast_list = &set_multicast_list;
dev->set_mac_address = NULL;
dev->netdev_ops = &lance_netdev_ops;
// KLUDGE -- REMOVE ME
set_bit(__LINK_STATE_PRESENT, &dev->state);

Expand Down

0 comments on commit ed17838

Please sign in to comment.