提交 5795c6ac 编写于 作者: R Rusty Russell

pinctrl: don't use PTR_RET().

We've already tested that it's an error.

Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 5d7e4386
...@@ -785,7 +785,7 @@ static int dove_pinctrl_probe(struct platform_device *pdev) ...@@ -785,7 +785,7 @@ static int dove_pinctrl_probe(struct platform_device *pdev)
clk = devm_clk_get(&pdev->dev, NULL); clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(clk)) { if (IS_ERR(clk)) {
dev_err(&pdev->dev, "Unable to get pdma clock"); dev_err(&pdev->dev, "Unable to get pdma clock");
return PTR_RET(clk); return PTR_ERR(clk);
} }
clk_prepare_enable(clk); clk_prepare_enable(clk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册