We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e56e33 commit 1e50f5cCopy full SHA for 1e50f5c
drivers/clk/qcom/common.c
@@ -277,8 +277,8 @@ static int qcom_cc_icc_register(struct device *dev,
277
icd[i].slave_id = desc->icc_hws[i].slave_id;
278
hws = &desc->clks[desc->icc_hws[i].clk_id]->hw;
279
icd[i].clk = devm_clk_hw_get_clk(dev, hws, "icc");
280
- if (!icd[i].clk)
281
- return dev_err_probe(dev, -ENOENT,
+ if (IS_ERR(icd[i].clk))
+ return dev_err_probe(dev, PTR_ERR(icd[i].clk),
282
"(%d) clock entry is null\n", i);
283
icd[i].name = clk_hw_get_name(hws);
284
}
0 commit comments