From: Frank Mori Hess Date: Sun, 7 Jul 2002 04:52:38 +0000 (+0000) Subject: got rid of useless attempt to avoid handling spurious interrupt during attach X-Git-Tag: r0_7_66~164 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e26452eed0fd974b9104cd729bf2e19e6e994957;p=comedi.git got rid of useless attempt to avoid handling spurious interrupt during attach --- diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index f18acac8..a68e23a4 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -97,8 +97,8 @@ analog triggering on 1602 series #include "8255.h" #include "amcc_s5933.h" -//#define CB_PCIDAS_DEBUG // enable debugging code #undef CB_PCIDAS_DEBUG // disable debugging code +//#define CB_PCIDAS_DEBUG // enable debugging code // PCI vendor number of ComputerBoards/MeasurementComputing #define PCI_VENDOR_ID_CB 0x1307 @@ -1502,10 +1502,7 @@ static void cb_pcidas_interrupt(int irq, void *d, struct pt_regs *regs) if(dev->attached == 0) { -#ifdef CB_PCIDAS_DEBUG comedi_error(dev, "premature interrupt"); -#endif - return; } async = s->async; @@ -1579,7 +1576,6 @@ static void cb_pcidas_interrupt(int irq, void *d, struct pt_regs *regs) break; } } - async->events |= COMEDI_CB_BLOCK; // clear not-empty interrupt latch outw(devpriv->adc_fifo_bits | INT, devpriv->control_status + INT_ADCFIFO); }else if(status & EOAI)