mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 06:15:12 +00:00
clk: qcom: krait-cc: fix wrong pointer passed to IS_ERR()
It should be 'mux' passed to IS_ERR/PTR_ERR(). Fixes: 56a655e1c41a ("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) {
|
for_each_possible_cpu(cpu) {
|
||||||
mux = krait_add_clks(dev, cpu, id->data);
|
mux = krait_add_clks(dev, cpu, id->data);
|
||||||
if (IS_ERR(clk))
|
if (IS_ERR(mux))
|
||||||
return PTR_ERR(clk);
|
return PTR_ERR(mux);
|
||||||
clks[cpu] = mux->clk;
|
clks[cpu] = mux->clk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user