diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-01-26 22:25:16 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-01-26 22:25:16 -0500 |
commit | 316bea79369334d11f8a6e22317a928d94c50ae5 (patch) | |
tree | 28881ee953e21404e64d7b6ca0b841bc0469a967 /drivers/atm | |
parent | fa755b9f2b03df1e0fa6d01b8949bbc778705973 (diff) |
solos: Kill global 'opens' count.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/solos-pci.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index 89bdf733af90..5179dbf9bd18 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c | |||
@@ -111,8 +111,6 @@ module_param(atmdebug, int, 0644); | |||
111 | module_param(firmware_upgrade, int, 0444); | 111 | module_param(firmware_upgrade, int, 0444); |
112 | module_param(fpga_upgrade, int, 0444); | 112 | module_param(fpga_upgrade, int, 0444); |
113 | 113 | ||
114 | static int opens; | ||
115 | |||
116 | static void fpga_queue(struct solos_card *card, int port, struct sk_buff *skb, | 114 | static void fpga_queue(struct solos_card *card, int port, struct sk_buff *skb, |
117 | struct atm_vcc *vcc); | 115 | struct atm_vcc *vcc); |
118 | static int fpga_tx(struct solos_card *); | 116 | static int fpga_tx(struct solos_card *); |
@@ -455,10 +453,6 @@ static int popen(struct atm_vcc *vcc) | |||
455 | set_bit(ATM_VF_READY, &vcc->flags); | 453 | set_bit(ATM_VF_READY, &vcc->flags); |
456 | list_vccs(0); | 454 | list_vccs(0); |
457 | 455 | ||
458 | if (!opens) | ||
459 | iowrite32(1, card->config_regs + IRQ_EN_ADDR); | ||
460 | |||
461 | opens++; //count open PVCs | ||
462 | 456 | ||
463 | return 0; | 457 | return 0; |
464 | } | 458 | } |
@@ -484,8 +478,6 @@ static void pclose(struct atm_vcc *vcc) | |||
484 | fpga_queue(card, SOLOS_CHAN(vcc->dev), skb, NULL); | 478 | fpga_queue(card, SOLOS_CHAN(vcc->dev), skb, NULL); |
485 | 479 | ||
486 | // dev_dbg(&card->dev->dev, "Close for vpi %d and vci %d on interface %d\n", vcc->vpi, vcc->vci, SOLOS_CHAN(vcc->dev)); | 480 | // dev_dbg(&card->dev->dev, "Close for vpi %d and vci %d on interface %d\n", vcc->vpi, vcc->vci, SOLOS_CHAN(vcc->dev)); |
487 | if (!--opens) | ||
488 | iowrite32(0, card->config_regs + IRQ_EN_ADDR); | ||
489 | 481 | ||
490 | clear_bit(ATM_VF_ADDR, &vcc->flags); | 482 | clear_bit(ATM_VF_ADDR, &vcc->flags); |
491 | clear_bit(ATM_VF_READY, &vcc->flags); | 483 | clear_bit(ATM_VF_READY, &vcc->flags); |
@@ -800,8 +792,6 @@ static int atm_init(struct solos_card *card) | |||
800 | { | 792 | { |
801 | int i; | 793 | int i; |
802 | 794 | ||
803 | opens = 0; | ||
804 | |||
805 | for (i = 0; i < card->nr_ports; i++) { | 795 | for (i = 0; i < card->nr_ports; i++) { |
806 | skb_queue_head_init(&card->tx_queue[i]); | 796 | skb_queue_head_init(&card->tx_queue[i]); |
807 | skb_queue_head_init(&card->cli_queue[i]); | 797 | skb_queue_head_init(&card->cli_queue[i]); |