From: Frank Mori Hess Date: Wed, 23 Aug 2006 01:48:14 +0000 (+0000) Subject: Fixed irq argument to comedi_request_irq() X-Git-Tag: r0_7_74~215 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2f9f5b470c9084aaf5ec79a459191416479c776e;p=comedi.git Fixed irq argument to comedi_request_irq() --- diff --git a/comedi/drivers/ni_mio_cs.c b/comedi/drivers/ni_mio_cs.c index ab124e16..738b470f 100644 --- a/comedi/drivers/ni_mio_cs.c +++ b/comedi/drivers/ni_mio_cs.c @@ -437,6 +437,10 @@ static void mio_cs_config(dev_link_t *link) link->irq.IRQInfo1=parse.cftable_entry.irq.IRQInfo1; link->irq.IRQInfo2=parse.cftable_entry.irq.IRQInfo2; ret = pcmcia_request_irq(handle, &link->irq); + if(ret) + { + printk("pcmcia_request_irq() returned error: %i\n", ret); + } //printk("RequestIRQ 0x%02x\n",ret); link->conf.ConfigIndex=1; @@ -490,7 +494,7 @@ static int mio_cs_attach(comedi_device *dev,comedi_devconfig *it) printk(" %s",boardtype.name); dev->board_name=boardtype.name; - if( (ret=comedi_request_irq(dev->irq,ni_E_interrupt,NI_E_IRQ_FLAGS,"ni_mio_cs",dev))<0 ){ + if( (ret=comedi_request_irq(irq,ni_E_interrupt,NI_E_IRQ_FLAGS,"ni_mio_cs",dev))<0 ){ printk(" irq not available\n"); return -EINVAL; }