提交 d829b37a 编写于 作者: A Arvind Yadav 提交者: Linus Walleij

gpio: mb86s7x: Handle return value of clk_prepare_enable.

clk_prepare_enable() can fail here and we must check its return value.
Signed-off-by: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 01062ad3
...@@ -168,7 +168,9 @@ static int mb86s70_gpio_probe(struct platform_device *pdev) ...@@ -168,7 +168,9 @@ static int mb86s70_gpio_probe(struct platform_device *pdev)
if (IS_ERR(gchip->clk)) if (IS_ERR(gchip->clk))
return PTR_ERR(gchip->clk); return PTR_ERR(gchip->clk);
clk_prepare_enable(gchip->clk); ret = clk_prepare_enable(gchip->clk);
if (ret)
return ret;
spin_lock_init(&gchip->lock); spin_lock_init(&gchip->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册