提交 6ba19bf0 编写于 作者: D Dan Carpenter 提交者: Mike Turquette

clk: checking wrong variable in __set_clk_parents()

There is a cut and paste bug so we check "pclk" instead of "clk".
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMike Turquette <mturquette@linaro.org>
上级 d7d3d26f
......@@ -55,10 +55,10 @@ static int __set_clk_parents(struct device_node *node, bool clk_supplier)
goto err;
}
clk = of_clk_get_by_clkspec(&clkspec);
if (IS_ERR(pclk)) {
if (IS_ERR(clk)) {
pr_warn("clk: couldn't get parent clock %d for %s\n",
index, node->full_name);
rc = PTR_ERR(pclk);
rc = PTR_ERR(clk);
goto err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册