[PARPORT] 2.1.70 parport_share.c


Andrea Arcangeli (arcangeli@mbox.queen.it)
Thu, 4 Dec 1997 20:38:18 +0100 (CET)


Please apply this patch to 2.1.70. Your latest request/free irq patch was
again bugged :) (at least for x86).

Andrea[s] Arcangeli

--- linux/drivers/misc/parport_share.c.orig Thu Dec 4 20:23:15 1997
+++ linux/drivers/misc/parport_share.c Thu Dec 4 20:23:48 1997
@@ -279,7 +279,7 @@
 
         /* Swap the IRQ handlers. */
         if (dev->port->irq != PARPORT_IRQ_NONE) {
- free_irq(dev->port->irq, pd1?pd1->private:NULL);
+ free_irq(dev->port->irq, pd1?pd1->private:dev->port);
                 request_irq(dev->port->irq, dev->irq_func ? dev->irq_func :
                             parport_null_intr_func, SA_INTERRUPT, dev->name,
                             dev->private);
@@ -309,7 +309,7 @@
         if (dev->port->irq != PARPORT_IRQ_NONE) {
                 free_irq(dev->port->irq, dev->private);
                 request_irq(dev->port->irq, parport_null_intr_func,
- SA_INTERRUPT, dev->port->name, NULL);
+ SA_INTERRUPT, dev->port->name, dev->port);
          }
 
         /* Walk the list, offering a wakeup callback to everybody other

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:09 EST