diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2023-01-04 11:02:35 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-01-10 18:29:02 +0300 |
commit | 3b36713d69d99318592d261eaca9b7460313c8c2 (patch) | |
tree | c7392ae7af3b96553bfbf6af94e6c27be9cefb1f | |
parent | e9a7b78b20889d2325bef4a1eb39c1088858ab81 (diff) | |
download | linux-3b36713d69d99318592d261eaca9b7460313c8c2.tar.xz |
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
-rw-r--r-- | drivers/clk/qcom/krait-cc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/qcom/krait-cc.c b/drivers/clk/qcom/krait-cc.c index 2f9287c263ec..410ae8390f1c 100644 --- a/drivers/clk/qcom/krait-cc.c +++ b/drivers/clk/qcom/krait-cc.c @@ -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; } |