From d72c6352a035b79d86e94c63b6888e9f1259b10d Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 28 Jan 2008 13:54:16 +0000 Subject: [PATCH] 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()). --- comedi/drivers/ni_pcidio.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.26.2