Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127796
b: refs/heads/master
c: b8aa76a
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 8, 2009
1 parent 4afa954 commit c4f924f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 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: 1f5ec79b8ec357516fbe14904a47f619bb3b543d
refs/heads/master: b8aa76a2bd9782e1a45e96602812910d5cfe7b52
14 changes: 11 additions & 3 deletions trunk/drivers/net/de600.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,16 @@ static void de600_rx_intr(struct net_device *dev)
*/
}

static const struct net_device_ops de600_netdev_ops = {
.ndo_open = de600_open,
.ndo_stop = de600_close,
.ndo_start_xmit = de600_start_xmit,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};


static struct net_device * __init de600_probe(void)
{
int i;
Expand Down Expand Up @@ -439,9 +449,7 @@ static struct net_device * __init de600_probe(void)

printk(", Ethernet Address: %pM\n", dev->dev_addr);

dev->open = de600_open;
dev->stop = de600_close;
dev->hard_start_xmit = &de600_start_xmit;
dev->netdev_ops = &de600_netdev_ops;

dev->flags&=~IFF_MULTICAST;

Expand Down
17 changes: 12 additions & 5 deletions trunk/drivers/net/de620.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,17 @@ static int adapter_init(struct net_device *dev)
return 0; /* all ok */
}

static const struct net_device_ops de620_netdev_ops = {
.ndo_open = de620_open,
.ndo_stop = de620_close,
.ndo_start_xmit = de620_start_xmit,
.ndo_tx_timeout = de620_timeout,
.ndo_set_multicast_list = de620_set_multicast_list,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};

/******************************************************************************
*
* Only start-up code below
Expand Down Expand Up @@ -861,12 +872,8 @@ struct net_device * __init de620_probe(int unit)
else
printk(" UTP)\n");

dev->open = de620_open;
dev->stop = de620_close;
dev->hard_start_xmit = de620_start_xmit;
dev->tx_timeout = de620_timeout;
dev->netdev_ops = &de620_netdev_ops;
dev->watchdog_timeo = HZ*2;
dev->set_multicast_list = de620_set_multicast_list;

/* base_addr and irq are already set, see above! */

Expand Down

0 comments on commit c4f924f

Please sign in to comment.