[PATCH] Fix dmaengine_submit() return type

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Jan 12 05:30:52 EST 2011


Ping?

On Sat, Jan 01, 2011 at 11:00:23PM +0000, Russell King - ARM Linux wrote:
> 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 at arm.linux.org.uk>
> ---
>  include/linux/dmaengine.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
> index 9d8688b..830935b 100644
> --- a/include/linux/dmaengine.h
> +++ b/include/linux/dmaengine.h
> @@ -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);
>  }
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



More information about the linux-arm-kernel mailing list