aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/dmaengine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 9070050fbcd8..2fe855a7cab1 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -464,9 +464,12 @@ static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx,
464 tx->unmap = unmap; 464 tx->unmap = unmap;
465} 465}
466 466
467void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap);
468
467static inline void dma_descriptor_unmap(struct dma_async_tx_descriptor *tx) 469static inline void dma_descriptor_unmap(struct dma_async_tx_descriptor *tx)
468{ 470{
469 if (tx->unmap) { 471 if (tx->unmap) {
472 dmaengine_unmap_put(tx->unmap);
470 tx->unmap = NULL; 473 tx->unmap = NULL;
471 } 474 }
472} 475}