aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/kpc2000/kpc_spi/spi_driver.c
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2019-04-26 14:54:13 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-27 15:00:35 +0200
commita4965d98b4d1ffa5b22f2039bc9e87898aff4976 (patch)
tree7b32dcae872200090020519a48c75eb9e36c0c45 /drivers/staging/kpc2000/kpc_spi/spi_driver.c
parentLS1021A: dtsi: add ftm quad decoder entries (diff)
downloadlinux-dev-a4965d98b4d1ffa5b22f2039bc9e87898aff4976.tar.xz
linux-dev-a4965d98b4d1ffa5b22f2039bc9e87898aff4976.zip
staging: comedi: comedi_isadma: Use a non-NULL device for DMA API
The "comedi_isadma" module calls `dma_alloc_coherent()` and `dma_free_coherent()` with a NULL device pointer which is no longer allowed. If the `hw_dev` member of the `struct comedi_device` has been set to a valid device, that can be used instead. Unfortunately, all the current users of the "comedi_isadma" module leave the `hw_dev` member set to NULL. In that case, fall back to using the comedi "class" device pointed to by the `class_dev` member if that is non-NULL. In that case, make it "DMA-capable" with a coherent DMA mask set to the ISA bus limit of 16MB (24 bits). Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/kpc2000/kpc_spi/spi_driver.c')
0 files changed, 0 insertions, 0 deletions