Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121929
b: refs/heads/master
c: f4bdd26
h: refs/heads/master
i:
  121927: a977775
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Nov 20, 2008
1 parent 2db6e17 commit d5f654b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 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: f3a216d1da1c034c425c4eafe27a1b45269985c7
refs/heads/master: f4bdd264b43cc60dccb617afce2859dffdd7a935
12 changes: 6 additions & 6 deletions trunk/drivers/net/hamradio/dmascc.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ static int __init setup_adapter(int card_base, int type, int n)
priv->param.persist = 256;
priv->param.dma = -1;
INIT_WORK(&priv->rx_work, rx_bh);
dev->priv = priv;
dev->ml_priv = priv;
sprintf(dev->name, "dmascc%i", 2 * n + i);
dev->base_addr = card_base;
dev->irq = irq;
Expand Down Expand Up @@ -720,7 +720,7 @@ static int read_scc_data(struct scc_priv *priv)

static int scc_open(struct net_device *dev)
{
struct scc_priv *priv = dev->priv;
struct scc_priv *priv = dev->ml_priv;
struct scc_info *info = priv->info;
int card_base = priv->card_base;

Expand Down Expand Up @@ -862,7 +862,7 @@ static int scc_open(struct net_device *dev)

static int scc_close(struct net_device *dev)
{
struct scc_priv *priv = dev->priv;
struct scc_priv *priv = dev->ml_priv;
struct scc_info *info = priv->info;
int card_base = priv->card_base;

Expand Down Expand Up @@ -891,7 +891,7 @@ static int scc_close(struct net_device *dev)

static int scc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{
struct scc_priv *priv = dev->priv;
struct scc_priv *priv = dev->ml_priv;

switch (cmd) {
case SIOCGSCCPARAM:
Expand All @@ -918,7 +918,7 @@ static int scc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)

static int scc_send_packet(struct sk_buff *skb, struct net_device *dev)
{
struct scc_priv *priv = dev->priv;
struct scc_priv *priv = dev->ml_priv;
unsigned long flags;
int i;

Expand Down Expand Up @@ -963,7 +963,7 @@ static int scc_send_packet(struct sk_buff *skb, struct net_device *dev)

static struct net_device_stats *scc_get_stats(struct net_device *dev)
{
struct scc_priv *priv = dev->priv;
struct scc_priv *priv = dev->ml_priv;

return &priv->stats;
}
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/net/hamradio/scc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ static int scc_net_alloc(const char *name, struct scc_channel *scc)
if (!dev)
return -ENOMEM;

dev->priv = scc;
dev->ml_priv = scc;
scc->dev = dev;
spin_lock_init(&scc->lock);
init_timer(&scc->tx_t);
Expand Down Expand Up @@ -1575,7 +1575,7 @@ static void scc_net_setup(struct net_device *dev)

static int scc_net_open(struct net_device *dev)
{
struct scc_channel *scc = (struct scc_channel *) dev->priv;
struct scc_channel *scc = (struct scc_channel *) dev->ml_priv;

if (!scc->init)
return -EINVAL;
Expand All @@ -1593,7 +1593,7 @@ static int scc_net_open(struct net_device *dev)

static int scc_net_close(struct net_device *dev)
{
struct scc_channel *scc = (struct scc_channel *) dev->priv;
struct scc_channel *scc = (struct scc_channel *) dev->ml_priv;
unsigned long flags;

netif_stop_queue(dev);
Expand Down Expand Up @@ -1634,7 +1634,7 @@ static void scc_net_rx(struct scc_channel *scc, struct sk_buff *skb)

static int scc_net_tx(struct sk_buff *skb, struct net_device *dev)
{
struct scc_channel *scc = (struct scc_channel *) dev->priv;
struct scc_channel *scc = (struct scc_channel *) dev->ml_priv;
unsigned long flags;
char kisscmd;

Expand Down Expand Up @@ -1704,7 +1704,7 @@ static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
struct scc_mem_config memcfg;
struct scc_hw_config hwcfg;
struct scc_calibrate cal;
struct scc_channel *scc = (struct scc_channel *) dev->priv;
struct scc_channel *scc = (struct scc_channel *) dev->ml_priv;
int chan;
unsigned char device_name[IFNAMSIZ];
void __user *arg = ifr->ifr_data;
Expand Down Expand Up @@ -1951,7 +1951,7 @@ static int scc_net_set_mac_address(struct net_device *dev, void *addr)

static struct net_device_stats *scc_net_get_stats(struct net_device *dev)
{
struct scc_channel *scc = (struct scc_channel *) dev->priv;
struct scc_channel *scc = (struct scc_channel *) dev->ml_priv;

scc->dev_stat.rx_errors = scc->stat.rxerrs + scc->stat.rx_over;
scc->dev_stat.tx_errors = scc->stat.txerrs + scc->stat.tx_under;
Expand Down

0 comments on commit d5f654b

Please sign in to comment.