From 12dab4ce85a7dc2cb2e4d813696ed47ed44fb24e Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Fri, 18 Nov 2011 01:17:44 +0000 Subject: [PATCH] apbh_dma: return error value on timeout MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When a timeout occurs, the return value is prepared but never returned. Fix that. Signed-off-by: Uwe Kleine-König Signed-off-by: Wolfram Sang Cc: Marek Vasut Acked-by: Stefano Babic --- drivers/dma/apbh_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c index 69a10428ef..4000974483 100644 --- a/drivers/dma/apbh_dma.c +++ b/drivers/dma/apbh_dma.c @@ -606,7 +606,7 @@ int mxs_dma_wait_complete(uint32_t timeout, unsigned int chan) mxs_dma_reset(chan); } - return 0; + return ret; } /* -- 2.25.1