apbh_dma: return error value on timeout
authorWolfram Sang <w.sang@pengutronix.de>
Fri, 18 Nov 2011 01:17:44 +0000 (01:17 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 6 Dec 2011 22:59:40 +0000 (23:59 +0100)
commit12dab4ce85a7dc2cb2e4d813696ed47ed44fb24e
tree358f46f9f70d6b772114b64493ae35c2cc919a7f
parent55723954829f30cf148924ee55d10b1662551edc
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>
drivers/dma/apbh_dma.c