add error message when request_irq fails
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 27 Apr 2005 00:17:00 +0000 (00:17 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 27 Apr 2005 00:17:00 +0000 (00:17 +0000)
comedi/drivers/ni_atmio16d.c

index cd38a0a5641ba412ac0408ca8498824a8e36400e..6bb043409d77a8d211f995007a988ecbc9e2a8ae 100644 (file)
@@ -731,7 +731,10 @@ static int atmio16d_attach(comedi_device * dev, comedi_devconfig * it)
        if(irq>0){
                if((ret=comedi_request_irq(irq,atmio16d_interrupt,
                        0, "atmio16d", dev))<0)
+               {
+                       printk("failed to allocate irq %d\n", irq); 
                        return ret;
+               }
                dev->irq=irq;
                printk("( irq = %d )\n",irq);
        } else if(irq == 0){