[PATCH 2/3] dma: apbh: check for errors when resetting ip core
Wolfram Sang
w.sang at pengutronix.de
Tue Oct 30 10:21:14 EDT 2012
Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
---
drivers/dma/apbh_dma.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c
index 363878f..d30b8fb 100644
--- a/drivers/dma/apbh_dma.c
+++ b/drivers/dma/apbh_dma.c
@@ -555,7 +555,9 @@ int mxs_dma_init(void)
int ret, channel;
u32 val, reg;
- mxs_reset_block(apbh_regs, 0);
+ ret = mxs_reset_block(apbh_regs, 0);
+ if (ret)
+ return ret;
/* HACK: Get CPUID and determine APBH version */
val = readl(0x8001c310) >> 16;
--
1.7.10.4
More information about the barebox
mailing list