Skip to content

Commit

Permalink
apbh_dma: return error value on timeout
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Wolfram Sang authored and albert-aribaud-u-boot committed Dec 6, 2011
1 parent 5572395 commit 12dab4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/apbh_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ int mxs_dma_wait_complete(uint32_t timeout, unsigned int chan)
mxs_dma_reset(chan);
}

return 0;
return ret;
}

/*
Expand Down

0 comments on commit 12dab4c

Please sign in to comment.