patch-2.1.60 linux/drivers/net/pt.c

Next file: linux/drivers/net/sdla.c
Previous file: linux/drivers/net/ppp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.59/linux/drivers/net/pt.c linux/drivers/net/pt.c
@@ -830,7 +830,7 @@
          * the interrupt, and this marks the 'irqaction' as busy.
          */
         {
-            int irqval = request_irq(dev->irq, &pt_interrupt,0, "pt", NULL);
+            int irqval = request_irq(dev->irq, &pt_interrupt,0, "pt", dev);
             if (irqval) {
                 printk(KERN_ERR "PT: ERROR: Unable to get IRQ %d (irqval = %d).\n",
                     dev->irq, irqval);
@@ -900,7 +900,6 @@
                 return -EAGAIN;
             }
         }
- 	irq2dev_map[dev->irq] = dev;
 
          /* Reset hardware */
          chipset_init(dev);
@@ -1772,7 +1771,6 @@
 {
 	free_irq(pt0a.irq, NULL);	/* IRQs and IO Ports are shared */
 	release_region(pt0a.base_addr & 0x3f0, PT_TOTAL_SIZE);
-	irq2dev_map[pt0a.irq] = NULL;
 
 	kfree(pt0a.priv);
 	pt0a.priv = NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov