mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 05:05:29 +07:00
staging: comedi: ni_labpc: dma requires an interrupt
DMA support only works if an interrupt is available. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
19a40abf5e
commit
290899082a
@ -1673,7 +1673,7 @@ int labpc_common_attach(struct comedi_device *dev, unsigned long iobase,
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ISA_DMA_API
|
||||
if (dma_chan == 1 || dma_chan == 3) {
|
||||
if (dev->irq && (dma_chan == 1 || dma_chan == 3)) {
|
||||
devpriv->dma_buffer = kmalloc(dma_buffer_size,
|
||||
GFP_KERNEL | GFP_DMA);
|
||||
if (devpriv->dma_buffer) {
|
||||
|
Loading…
Reference in New Issue
Block a user