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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
Wolfram Sang 2011-11-18 01:17:44 +00:00 committed by Albert ARIBAUD
parent 5572395482
commit 12dab4ce85

View File

@ -606,7 +606,7 @@ int mxs_dma_wait_complete(uint32_t timeout, unsigned int chan)
mxs_dma_reset(chan);
}
return 0;
return ret;
}
/*