From f7555cc72aecab9efda53f863db0c7738b777dcc Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 14 Jan 2002 22:37:41 +0000 Subject: [PATCH] added a little printk for when request_irq fails --- comedi/drivers/dt282x.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/comedi/drivers/dt282x.c b/comedi/drivers/dt282x.c index a5342cce..fad42ba6 100644 --- a/comedi/drivers/dt282x.c +++ b/comedi/drivers/dt282x.c @@ -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)"); -- 2.26.2