diff options
author | Huang Shijie <sjhuang@iluvatar.ai> | 2018-07-26 02:45:53 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-07-30 01:20:22 -0400 |
commit | f39b948dbeaf9da0dfd17e68704f38fe4237788f (patch) | |
tree | 398e038a9d6dad68808d424deedf6ec13dfefd54 /include/linux/dmaengine.h | |
parent | ec8ca8e3b4809bf603814a8834bfd3891e1ccf74 (diff) |
dmaengine: add a new helper dmaenginem_async_device_register
This patch adds the dmaenginem_async_device_register for DMA code.
Use the Devres to call the release for the DMA engine driver.
Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r-- | include/linux/dmaengine.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index c8c3a7a93802..d49ec5c31944 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
@@ -1406,6 +1406,7 @@ static inline int dmaengine_desc_free(struct dma_async_tx_descriptor *desc) | |||
1406 | /* --- DMA device --- */ | 1406 | /* --- DMA device --- */ |
1407 | 1407 | ||
1408 | int dma_async_device_register(struct dma_device *device); | 1408 | int dma_async_device_register(struct dma_device *device); |
1409 | int dmaenginem_async_device_register(struct dma_device *device); | ||
1409 | void dma_async_device_unregister(struct dma_device *device); | 1410 | void dma_async_device_unregister(struct dma_device *device); |
1410 | void dma_run_dependencies(struct dma_async_tx_descriptor *tx); | 1411 | void dma_run_dependencies(struct dma_async_tx_descriptor *tx); |
1411 | struct dma_chan *dma_get_slave_channel(struct dma_chan *chan); | 1412 | struct dma_chan *dma_get_slave_channel(struct dma_chan *chan); |