提交 c6134c96 编写于 作者: R Rabin Vincent 提交者: Dan Williams

DMAENGINE: ste_dma40: fix clk_get failure path

clk_get returns an ERR_PTR.
Acked-by: NJonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: NRabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: NLinus Walleij <linus.walleij@stericsson.com>
Signed-off-by: NDan Williams <dan.j.williams@intel.com>
上级 f57b407c
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册