From: Ian Abbott Date: Wed, 27 Jun 2007 10:37:20 +0000 (+0000) Subject: Don't ignore return value of comedi_request_irq(). X-Git-Tag: r0_7_74~73 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2a5e7a1dd02ccbd04c1e5a053c926889710436a2;p=comedi.git Don't ignore return value of comedi_request_irq(). --- diff --git a/comedi/drivers/dt2814.c b/comedi/drivers/dt2814.c index 80b8dc19..64628975 100644 --- a/comedi/drivers/dt2814.c +++ b/comedi/drivers/dt2814.c @@ -280,9 +280,12 @@ static int dt2814_attach(comedi_device *dev,comedi_devconfig *it) #endif dev->irq=0; if(irq>0){ - printk("( irq = %d )\n",irq); - comedi_request_irq(irq,dt2814_interrupt,0,"dt2814",dev); - dev->irq=irq; + if(comedi_request_irq(irq,dt2814_interrupt,0,"dt2814",dev)){ + printk("(irq %d unavailable)\n", irq); + }else{ + printk("( irq = %d )\n",irq); + dev->irq=irq; + } }else if(irq==0){ printk("(no irq)\n"); }else{