Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
remoteproc: qcom_wcnss_iris: Simplify with dev_err_probe()
Browse files Browse the repository at this point in the history
Use dev_err_probe() to make error and defer code handling simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20241011-remote-proc-dev-err-probe-v1-10-5abb4fc61eca@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
  • Loading branch information
krzk authored and andersson committed Nov 16, 2024
1 parent f21e504 commit 70d3581
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/remoteproc/qcom_wcnss_iris.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ struct qcom_iris *qcom_iris_probe(struct device *parent, bool *use_48mhz_xo)

iris->xo_clk = devm_clk_get(&iris->dev, "xo");
if (IS_ERR(iris->xo_clk)) {
ret = PTR_ERR(iris->xo_clk);
if (ret != -EPROBE_DEFER)
dev_err(&iris->dev, "failed to acquire xo clk\n");
ret = dev_err_probe(&iris->dev, PTR_ERR(iris->xo_clk),
"failed to acquire xo clk\n");
goto err_device_del;
}

Expand Down

0 comments on commit 70d3581

Please sign in to comment.