Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149784
b: refs/heads/master
c: d32da05
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 17, 2009
1 parent b0e50fe commit a65621b
Show file tree
Hide file tree
Showing 2 changed files with 13 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: f6a2629353718e588820b731af43a445b6f35648
refs/heads/master: d32da050a340214c5dae0d014e39f75548cac2f2
20 changes: 12 additions & 8 deletions trunk/drivers/net/wan/pc300_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ static char rcsid[] =
#include <linux/skbuff.h>
#include <linux/if_arp.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/spinlock.h>
#include <linux/if.h>
#include <net/arp.h>
Expand Down Expand Up @@ -3246,6 +3247,16 @@ static inline void show_version(void)
rcsvers, rcsdate, __DATE__, __TIME__);
} /* show_version */

static const struct net_device_ops cpc_netdev_ops = {
.ndo_open = cpc_open,
.ndo_stop = cpc_close,
.ndo_tx_timeout = cpc_tx_timeout,
.ndo_set_mac_address = NULL,
.ndo_change_mtu = cpc_change_mtu,
.ndo_do_ioctl = cpc_ioctl,
.ndo_validate_addr = eth_validate_addr,
};

static void cpc_init_card(pc300_t * card)
{
int i, devcount = 0;
Expand Down Expand Up @@ -3357,18 +3368,11 @@ static void cpc_init_card(pc300_t * card)
dev->mem_start = card->hw.ramphys;
dev->mem_end = card->hw.ramphys + card->hw.ramsize - 1;
dev->irq = card->hw.irq;
dev->init = NULL;
dev->tx_queue_len = PC300_TX_QUEUE_LEN;
dev->mtu = PC300_DEF_MTU;

dev->open = cpc_open;
dev->stop = cpc_close;
dev->tx_timeout = cpc_tx_timeout;
dev->netdev_ops = &cpc_netdev_ops;
dev->watchdog_timeo = PC300_TX_TIMEOUT;
dev->set_multicast_list = NULL;
dev->set_mac_address = NULL;
dev->change_mtu = cpc_change_mtu;
dev->do_ioctl = cpc_ioctl;

if (register_hdlc_device(dev) == 0) {
printk("%s: Cyclades-PC300/", dev->name);
Expand Down

0 comments on commit a65621b

Please sign in to comment.