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 535e310 commit 2fe5844Copy full SHA for 2fe5844
drivers/clk/qcom/common.c
@@ -273,8 +273,8 @@ static int qcom_cc_icc_register(struct device *dev,
273
icd[i].slave_id = desc->icc_hws[i].slave_id;
274
hws = &desc->clks[desc->icc_hws[i].clk_id]->hw;
275
icd[i].clk = devm_clk_hw_get_clk(dev, hws, "icc");
276
- if (!icd[i].clk)
277
- return dev_err_probe(dev, -ENOENT,
+ if (IS_ERR(icd[i].clk))
+ return dev_err_probe(dev, PTR_ERR(icd[i].clk),
278
"(%d) clock entry is null\n", i);
279
icd[i].name = clk_hw_get_name(hws);
280
}
0 commit comments