dmaengine: reference counted unmap data
[firefly-linux-kernel-4.4.55.git] / include / linux / dmaengine.h
index 9070050fbcd86a4a34f1c60552c9907d566ae32c..2fe855a7cab1eff9472bf16426e0b6db99fbb0cb 100644 (file)
@@ -464,9 +464,12 @@ static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx,
        tx->unmap = unmap;
 }
 
+void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap);
+
 static inline void dma_descriptor_unmap(struct dma_async_tx_descriptor *tx)
 {
        if (tx->unmap) {
+               dmaengine_unmap_put(tx->unmap);
                tx->unmap = NULL;
        }
 }