From: Ian Abbott Date: Mon, 28 Jan 2008 13:54:16 +0000 (+0000) Subject: Fix bug in ni_pcidio_release_di_mite_channel() that prevented subsequent X-Git-Tag: v0_7_76~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d72c6352a035b79d86e94c63b6888e9f1259b10d;p=comedi.git Fix bug in ni_pcidio_release_di_mite_channel() that prevented subsequent commands working (it never set devpriv->di_mite_chan to NULL after calling mite_release_channel()). --- diff --git a/comedi/drivers/ni_pcidio.c b/comedi/drivers/ni_pcidio.c index cf2b2fca..4f433306 100644 --- a/comedi/drivers/ni_pcidio.c +++ b/comedi/drivers/ni_pcidio.c @@ -450,6 +450,7 @@ static void ni_pcidio_release_di_mite_channel(comedi_device * dev) mite_dma_disarm(devpriv->di_mite_chan); mite_dma_reset(devpriv->di_mite_chan); mite_release_channel(devpriv->di_mite_chan); + devpriv->di_mite_chan = NULL; writeb(primary_DMAChannel_bits(0) | secondary_DMAChannel_bits(0), devpriv->mite->daq_io_addr + DMA_Line_Control_Group1);