patch-2.1.62 linux/drivers/net/pi2.c

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

diff -u --recursive --new-file v2.1.61/linux/drivers/net/pi2.c linux/drivers/net/pi2.c
@@ -1439,7 +1439,7 @@
     if (dev->base_addr & 2) {	/* if A channel */
 	if (first_time) {
 	    if (request_dma(dev->dma,"pi2")) {
-		free_irq(dev->irq, NULL);
+		free_irq(dev->irq, dev);
 		return -EAGAIN;
 	    }
 	}
@@ -1669,7 +1669,7 @@
 
 void cleanup_module(void)
 {
-    free_irq(pi0a.irq, NULL);	/* IRQs and IO Ports are shared */
+    free_irq(pi0a.irq, &pi0a);	/* IRQs and IO Ports are shared */
     release_region(pi0a.base_addr & 0x3f0, PI_TOTAL_SIZE);
 
     kfree(pi0a.priv);

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]