summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2011-11-18 01:17:44 +0000
committerAlbert ARIBAUD <[email protected]>2011-12-06 23:59:40 +0100
commit12dab4ce85a7dc2cb2e4d813696ed47ed44fb24e (patch)
tree358f46f9f70d6b772114b64493ae35c2cc919a7f
parent55723954829f30cf148924ee55d10b1662551edc (diff)
apbh_dma: return error value on timeout
When a timeout occurs, the return value is prepared but never returned. Fix that. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> Cc: Marek Vasut <[email protected]> Acked-by: Stefano Babic <[email protected]>
-rw-r--r--drivers/dma/apbh_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c
index 69a10428ef2..40009744835 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;
}
/*