diff options
| -rw-r--r-- | drivers/net/a2065.c | 4 | ||||
| -rw-r--r-- | drivers/net/declance.c | 4 | ||||
| -rw-r--r-- | drivers/net/sunlance.c | 4 |
3 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/a2065.c b/drivers/net/a2065.c index 6c5719ae8cca..9c0837435b68 100644 --- a/drivers/net/a2065.c +++ b/drivers/net/a2065.c | |||
| @@ -475,16 +475,12 @@ static irqreturn_t lance_interrupt (int irq, void *dev_id) | |||
| 475 | return IRQ_HANDLED; | 475 | return IRQ_HANDLED; |
| 476 | } | 476 | } |
| 477 | 477 | ||
| 478 | struct net_device *last_dev; | ||
| 479 | |||
| 480 | static int lance_open (struct net_device *dev) | 478 | static int lance_open (struct net_device *dev) |
| 481 | { | 479 | { |
| 482 | struct lance_private *lp = netdev_priv(dev); | 480 | struct lance_private *lp = netdev_priv(dev); |
| 483 | volatile struct lance_regs *ll = lp->ll; | 481 | volatile struct lance_regs *ll = lp->ll; |
| 484 | int ret; | 482 | int ret; |
| 485 | 483 | ||
| 486 | last_dev = dev; | ||
| 487 | |||
| 488 | /* Stop the Lance */ | 484 | /* Stop the Lance */ |
| 489 | ll->rap = LE_CSR0; | 485 | ll->rap = LE_CSR0; |
| 490 | ll->rdp = LE_C0_STOP; | 486 | ll->rdp = LE_C0_STOP; |
diff --git a/drivers/net/declance.c b/drivers/net/declance.c index 6b1e77cc069e..3e3506411ac0 100644 --- a/drivers/net/declance.c +++ b/drivers/net/declance.c | |||
| @@ -773,8 +773,6 @@ static irqreturn_t lance_interrupt(int irq, void *dev_id) | |||
| 773 | return IRQ_HANDLED; | 773 | return IRQ_HANDLED; |
| 774 | } | 774 | } |
| 775 | 775 | ||
| 776 | struct net_device *last_dev = 0; | ||
| 777 | |||
| 778 | static int lance_open(struct net_device *dev) | 776 | static int lance_open(struct net_device *dev) |
| 779 | { | 777 | { |
| 780 | volatile u16 *ib = (volatile u16 *)dev->mem_start; | 778 | volatile u16 *ib = (volatile u16 *)dev->mem_start; |
| @@ -782,8 +780,6 @@ static int lance_open(struct net_device *dev) | |||
| 782 | volatile struct lance_regs *ll = lp->ll; | 780 | volatile struct lance_regs *ll = lp->ll; |
| 783 | int status = 0; | 781 | int status = 0; |
| 784 | 782 | ||
| 785 | last_dev = dev; | ||
| 786 | |||
| 787 | /* Stop the Lance */ | 783 | /* Stop the Lance */ |
| 788 | writereg(&ll->rap, LE_CSR0); | 784 | writereg(&ll->rap, LE_CSR0); |
| 789 | writereg(&ll->rdp, LE_C0_STOP); | 785 | writereg(&ll->rdp, LE_C0_STOP); |
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index 26ade68aeabf..4e994f87469e 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c | |||
| @@ -915,15 +915,11 @@ static void build_fake_packet(struct lance_private *lp) | |||
| 915 | lp->tx_new = TX_NEXT(entry); | 915 | lp->tx_new = TX_NEXT(entry); |
| 916 | } | 916 | } |
| 917 | 917 | ||
| 918 | struct net_device *last_dev; | ||
| 919 | |||
| 920 | static int lance_open(struct net_device *dev) | 918 | static int lance_open(struct net_device *dev) |
| 921 | { | 919 | { |
| 922 | struct lance_private *lp = netdev_priv(dev); | 920 | struct lance_private *lp = netdev_priv(dev); |
| 923 | int status = 0; | 921 | int status = 0; |
| 924 | 922 | ||
| 925 | last_dev = dev; | ||
| 926 | |||
| 927 | STOP_LANCE(lp); | 923 | STOP_LANCE(lp); |
| 928 | 924 | ||
| 929 | if (request_irq(dev->irq, &lance_interrupt, IRQF_SHARED, | 925 | if (request_irq(dev->irq, &lance_interrupt, IRQF_SHARED, |
