added a little printk for when request_irq fails
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 14 Jan 2002 22:37:41 +0000 (22:37 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 14 Jan 2002 22:37:41 +0000 (22:37 +0000)
comedi/drivers/dt282x.c

index a5342ccefdb97a0d458ccd12d9f4b7e8436ef459..fad42ba67c2c49fa65b14b5e4d131c1fbb0c4d13 100644 (file)
@@ -1247,7 +1247,10 @@ static int dt282x_attach(comedi_device * dev, comedi_devconfig * it)
        if (irq > 0) {
                printk(" ( irq = %d )", irq);
                ret = comedi_request_irq(irq, dt282x_interrupt, 0, "dt282x", dev);
-               if(ret<0)return -EIO;
+               if(ret<0) {
+                       printk(" failed to get irq\n");
+                       return -EIO;
+               }
                dev->irq = irq;
        } else if (irq == 0) {
                printk(" (no irq)");