Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121973
b: refs/heads/master
c: 6636e11
h: refs/heads/master
i:
  121971: 0648776
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Nov 22, 2008
1 parent 6be1891 commit 1a7a33d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 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: 2baf8a2daab65cdd3f20bfeb4676a2f6aff7c3bf
refs/heads/master: 6636e1170d1e49818933ecea0e715e0c73e19bb8
17 changes: 8 additions & 9 deletions trunk/drivers/net/wan/pc300_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,7 @@ cpc_trace(struct net_device *dev, struct sk_buff *skb_main, char rx_tx)

static void cpc_tx_timeout(struct net_device *dev)
{
pc300dev_t *d = (pc300dev_t *) dev->priv;
pc300dev_t *d = (pc300dev_t *) dev_to_hdlc(dev)->priv;
pc300ch_t *chan = (pc300ch_t *) d->chan;
pc300_t *card = (pc300_t *) chan->card;
int ch = chan->channel;
Expand All @@ -1796,7 +1796,7 @@ static void cpc_tx_timeout(struct net_device *dev)

static int cpc_queue_xmit(struct sk_buff *skb, struct net_device *dev)
{
pc300dev_t *d = (pc300dev_t *) dev->priv;
pc300dev_t *d = (pc300dev_t *) dev_to_hdlc(dev)->priv;
pc300ch_t *chan = (pc300ch_t *) d->chan;
pc300_t *card = (pc300_t *) chan->card;
int ch = chan->channel;
Expand Down Expand Up @@ -1874,7 +1874,7 @@ static int cpc_queue_xmit(struct sk_buff *skb, struct net_device *dev)

static void cpc_net_rx(struct net_device *dev)
{
pc300dev_t *d = (pc300dev_t *) dev->priv;
pc300dev_t *d = (pc300dev_t *) dev_to_hdlc(dev)->priv;
pc300ch_t *chan = (pc300ch_t *) d->chan;
pc300_t *card = (pc300_t *) chan->card;
int ch = chan->channel;
Expand Down Expand Up @@ -2522,7 +2522,7 @@ static int cpc_change_mtu(struct net_device *dev, int new_mtu)

static int cpc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{
pc300dev_t *d = (pc300dev_t *) dev->priv;
pc300dev_t *d = (pc300dev_t *) dev_to_hdlc(dev)->priv;
pc300ch_t *chan = (pc300ch_t *) d->chan;
pc300_t *card = (pc300_t *) chan->card;
pc300conf_t conf_aux;
Expand Down Expand Up @@ -3058,7 +3058,7 @@ static int tx_config(pc300dev_t * d)
static int cpc_attach(struct net_device *dev, unsigned short encoding,
unsigned short parity)
{
pc300dev_t *d = (pc300dev_t *)dev->priv;
pc300dev_t *d = (pc300dev_t *)dev_to_hdlc(dev)->priv;
pc300ch_t *chan = (pc300ch_t *)d->chan;
pc300_t *card = (pc300_t *)chan->card;
pc300chconf_t *conf = (pc300chconf_t *)&chan->conf;
Expand Down Expand Up @@ -3138,7 +3138,7 @@ static void cpc_closech(pc300dev_t * d)

int cpc_open(struct net_device *dev)
{
pc300dev_t *d = (pc300dev_t *) dev->priv;
pc300dev_t *d = (pc300dev_t *) dev_to_hdlc(dev)->priv;
struct ifreq ifr;
int result;

Expand Down Expand Up @@ -3166,7 +3166,7 @@ int cpc_open(struct net_device *dev)

static int cpc_close(struct net_device *dev)
{
pc300dev_t *d = (pc300dev_t *) dev->priv;
pc300dev_t *d = (pc300dev_t *) dev_to_hdlc(dev)->priv;
pc300ch_t *chan = (pc300ch_t *) d->chan;
pc300_t *card = (pc300_t *) chan->card;
unsigned long flags;
Expand Down Expand Up @@ -3347,7 +3347,7 @@ static void cpc_init_card(pc300_t * card)
d->line_on = 0;
d->line_off = 0;

dev = alloc_hdlcdev(NULL);
dev = alloc_hdlcdev(d);
if (dev == NULL)
continue;

Expand All @@ -3372,7 +3372,6 @@ static void cpc_init_card(pc300_t * card)
dev->do_ioctl = cpc_ioctl;

if (register_hdlc_device(dev) == 0) {
dev->priv = d; /* We need 'priv', hdlc doesn't */
printk("%s: Cyclades-PC300/", dev->name);
switch (card->hw.type) {
case PC300_TE:
Expand Down

0 comments on commit 1a7a33d

Please sign in to comment.