aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ste_dma40.c
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2010-10-06 04:20:36 -0400
committerDan Williams <dan.j.williams@intel.com>2010-10-07 17:54:55 -0400
commitc6134c967c5b8b5986371de335fa4ec39de268bc (patch)
treed0ad380424a2fc37785a46118434b2b058cbda00 /drivers/dma/ste_dma40.c
parentf57b407cfd5fbd70251e9fa0ea7aa083ac06d25c (diff)
DMAENGINE: ste_dma40: fix clk_get failure path
clk_get returns an ERR_PTR. Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ste_dma40.c')
-rw-r--r--drivers/dma/ste_dma40.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 2f73e366111e..8596c318114b 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2636,7 +2636,7 @@ static struct d40_base * __init d40_hw_detect_init(struct platform_device *pdev)
2636 return base; 2636 return base;
2637 2637
2638failure: 2638failure:
2639 if (clk) { 2639 if (!IS_ERR(clk)) {
2640 clk_disable(clk); 2640 clk_disable(clk);
2641 clk_put(clk); 2641 clk_put(clk);
2642 } 2642 }