# Re: \[PATCH 02/18\] dmaengine: imx-sdma: pass struct device to DMA API functions

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2019-02-02 17:21:25 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2019/02/5502122
- Thread: https://ratatoskr.run/linux-mips/2019/02/5501082/t.md

```text
On Sat, Feb 02, 2019 at 03:41:21PM +0530, Vinod Koul wrote:
> On 01-02-19, 09:47, Christoph Hellwig wrote:
> > The DMA API generally relies on a struct device to work properly, and
> > only barely works without one for legacy reasons.  Pass the easily
> > available struct device from the platform_device to remedy this.
> 
> This looks good to me but fails to apply. Can you please base it on
> dmaengine-next or linux-next please and resend

commit ceaf52265148d3a5ca24237fd1c709caa5f46184
Author: Andy Duan [ref]
Date:   Fri Jan 11 14:29:49 2019 +0000

    dmaengine: imx-sdma: pass ->dev to dma_alloc_coherent() API

in linux-next actually is equivalent to this patch, so we can drop
this one.

> 
> Thanks
> -- 
> ~Vinod
---end quoted text---
```
