From 712cc2b3454f3c34a8dfdd0d337817eefbd85963 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 27 Apr 2005 00:17:00 +0000 Subject: [PATCH] add error message when request_irq fails --- comedi/drivers/ni_atmio16d.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comedi/drivers/ni_atmio16d.c b/comedi/drivers/ni_atmio16d.c index cd38a0a5..6bb04340 100644 --- a/comedi/drivers/ni_atmio16d.c +++ b/comedi/drivers/ni_atmio16d.c @@ -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){ -- 2.26.2