[PARPORT] parport and interrupts


Tim Waugh (tim@cyberelk.demon.co.uk)
Tue, 15 Sep 1998 23:25:34 +0100 (BST)


Hi guys,

Here's a patch for parport_pc.c:

--- linux/drivers/misc/parport_pc.c~ Thu Sep 10 18:20:03 1998
+++ linux/drivers/misc/parport_pc.c Tue Sep 15 23:20:21 1998
@@ -182,8 +182,15 @@
 int parport_pc_claim_resources(struct parport *p)
 {
         int err;
- if (p->irq != PARPORT_IRQ_NONE)
- if ((err = request_irq(p->irq, parport_pc_null_intr_func, 0, p->name, NULL)) != 0) return err;
+ if (p->irq != PARPORT_IRQ_NONE) {
+ err = request_irq (p->irq, parport_pc_null_intr_func, 0,
+ p->name, NULL);
+ if (err) {
+ printk (KERN_ERR "parport_pc: couldn't get IRQ %d\n",
+ p->irq);
+ return err;
+ }
+ }
         request_region(p->base, p->size, p->name);
         if (p->modes & PARPORT_MODE_PCECR)
                 request_region(p->base+0x400, 3, p->name);

Do you think it's worth changing it to set p->irq to PARPORT_IRQ_NONE and
continue merrily on, before I send it to Linus?

Tim.
*/

-- 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:18:19 EST