From: Rabin Vincent Date: Wed, 6 Oct 2010 08:20:36 +0000 (+0000) Subject: DMAENGINE: ste_dma40: fix clk_get failure path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6134c967c5b8b5986371de335fa4ec39de268bc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git DMAENGINE: ste_dma40: fix clk_get failure path clk_get returns an ERR_PTR. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams --- 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) return base; failure: - if (clk) { + if (!IS_ERR(clk)) { clk_disable(clk); clk_put(clk); }