mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
dmaengine: at_xdmac: Handle return value of clk_prepare_enable.
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <[email protected]> Acked-by: Ludovic Desroches <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
@@ -1883,8 +1883,11 @@ static int atmel_xdmac_resume(struct device *dev)
|
||||
struct at_xdmac_chan *atchan;
|
||||
struct dma_chan *chan, *_chan;
|
||||
int i;
|
||||
int ret;
|
||||
|
||||
clk_prepare_enable(atxdmac->clk);
|
||||
ret = clk_prepare_enable(atxdmac->clk);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* Clear pending interrupts. */
|
||||
for (i = 0; i < atxdmac->dma.chancnt; i++) {
|
||||
|
||||
Reference in New Issue
Block a user