Re: [PATCH] staging: comedi: comedi_isadma: Use a non-NULL device for DMA API

2019-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 26, 2019 at 10:41:20AM +0100, Ian Abbott wrote: > On 25/04/2019 18:13, Greg Kroah-Hartman wrote: > > On Thu, Apr 25, 2019 at 05:26:44PM +0100, Ian Abbott wrote: > > > The "comedi_isadma" module calls `dma_alloc_coherent()` and > > > `dma_free_coherent()` with a NULL device pointer

Re: [PATCH] staging: comedi: comedi_isadma: Use a non-NULL device for DMA API

2019-04-26 Thread Ian Abbott
On 25/04/2019 18:13, Greg Kroah-Hartman wrote: On Thu, Apr 25, 2019 at 05:26:44PM +0100, Ian Abbott wrote: 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

Re: [PATCH] staging: comedi: comedi_isadma: Use a non-NULL device for DMA API

2019-04-25 Thread Greg Kroah-Hartman
On Thu, Apr 25, 2019 at 05:26:44PM +0100, Ian Abbott wrote: > 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

[PATCH] staging: comedi: comedi_isadma: Use a non-NULL device for DMA API

2019-04-25 Thread Ian Abbott
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