Fix dmaengine_submit() return type
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Sat, 1 Jan 2011 23:00:23 +0000 (23:00 +0000)
committerDan Williams <dan.j.williams@intel.com>
Sat, 15 Jan 2011 01:07:49 +0000 (17:07 -0800)
desc->tx_submit's return type is dma_cookie_t, not int.  Therefore,
dmaengine_submit() should match this return type as it's just
wrapping this detail.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
include/linux/dmaengine.h

index 9d8688b92d8b02c46980f9a4397e4b2d0c313413..830935b7c49cf8ab616a804e1b54459b09616502 100644 (file)
@@ -532,7 +532,7 @@ static inline int dmaengine_resume(struct dma_chan *chan)
        return dmaengine_device_control(chan, DMA_RESUME, 0);
 }
 
-static inline int dmaengine_submit(struct dma_async_tx_descriptor *desc)
+static inline dma_cookie_t dmaengine_submit(struct dma_async_tx_descriptor *desc)
 {
        return desc->tx_submit(desc);
 }