mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
Fix dmaengine_submit() return type
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>
This commit is contained in:
parent
dda36f9821
commit
98d530fe24
1 changed files with 1 additions and 1 deletions
|
@ -532,7 +532,7 @@ static inline int dmaengine_resume(struct dma_chan *chan)
|
||||||
return dmaengine_device_control(chan, DMA_RESUME, 0);
|
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);
|
return desc->tx_submit(desc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue