Re: [PARPORT] 2.1.70 parport_share.c


Andrea Arcangeli (arcangeli@mbox.queen.it)
Sat, 6 Dec 1997 19:28:54 +0100 (CET)


Philip, If you want to change *dev_id == NULL in parport_share you must
change it also in all foo_claim_resources and foo_release_resources.

Please Linus apply this to 2.1.71:

--- /usr/src/linux/drivers/misc/parport_pc.c Fri Dec 5 18:14:35 1997
+++ linux/drivers/misc/parport_pc.c Sat Dec 6 19:15:25 1997
@@ -141,7 +141,7 @@
 static void pc_release_resources(struct parport *p)
 {
         if (p->irq != PARPORT_IRQ_NONE)
- free_irq(p->irq, p);
+ free_irq(p->irq, NULL);
         release_region(p->base, p->size);
         if (p->modes & PARPORT_MODE_PCECR)
                 release_region(p->base+0x400, 3);
@@ -151,7 +151,7 @@
 {
         /* FIXME check that resources are free */
         if (p->irq != PARPORT_IRQ_NONE)
- request_irq(p->irq, pc_null_intr_func, 0, p->name, p);
+ request_irq(p->irq, pc_null_intr_func, 0, p->name, NULL);
         request_region(p->base, p->size, p->name);
         if (p->modes & PARPORT_MODE_PCECR)
                 request_region(p->base+0x400, 3, p->name);
--- /usr/src/linux/drivers/misc/parport_ax.c Fri Dec 5 18:14:35 1997
+++ linux/drivers/misc/parport_ax.c Sat Dec 6 19:11:34 1997
@@ -171,7 +171,7 @@
 {
         if (p->irq != PARPORT_IRQ_NONE) {
                 ax_disable_irq(p);
- free_irq(p->irq, p);
+ free_irq(p->irq, NULL);
         }
         release_region(p->base, p->size);
         if (p->modes & PARPORT_MODE_PCECR)
@@ -185,7 +185,7 @@
 {
         /* FIXME check that resources are free */
         if (p->irq != PARPORT_IRQ_NONE) {
- request_irq(p->irq, ax_null_intr_func, 0, p->name, p);
+ request_irq(p->irq, ax_null_intr_func, 0, p->name, NULL);
                 ax_enable_irq(p);
         }
         request_region(p->base, p->size, p->name);

Andrea[s] Arcangeli

-- 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