clk: qcom: krait-cc: fix wrong pointer passed to IS_ERR()
It should be 'mux' passed to IS_ERR/PTR_ERR().
Fixes: 56a655e1c4
("clk: qcom: krait-cc: convert to parent_data API")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230104080235.1748953-1-yangyingliang@huawei.com
This commit is contained in:
parent
e9a7b78b20
commit
3b36713d69
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue