Commit 3b36713d authored by Yang Yingliang's avatar Yang Yingliang Committed by Bjorn Andersson

clk: qcom: krait-cc: fix wrong pointer passed to IS_ERR()

It should be 'mux' passed to IS_ERR/PTR_ERR().

Fixes: 56a655e1 ("clk: qcom: krait-cc: convert to parent_data API")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230104080235.1748953-1-yangyingliang@huawei.com
parent e9a7b78b
......@@ -376,8 +376,8 @@ static int krait_cc_probe(struct platform_device *pdev)
for_each_possible_cpu(cpu) {
mux = krait_add_clks(dev, cpu, id->data);
if (IS_ERR(clk))
return PTR_ERR(clk);
if (IS_ERR(mux))
return PTR_ERR(mux);
clks[cpu] = mux->clk;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment