mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
remoteproc: qcom_wcnss_iris: Simplify with dev_err_probe()
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>
This commit is contained in:
parent
f21e504de8
commit
70d3581953
@ -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");
|
iris->xo_clk = devm_clk_get(&iris->dev, "xo");
|
||||||
if (IS_ERR(iris->xo_clk)) {
|
if (IS_ERR(iris->xo_clk)) {
|
||||||
ret = PTR_ERR(iris->xo_clk);
|
ret = dev_err_probe(&iris->dev, PTR_ERR(iris->xo_clk),
|
||||||
if (ret != -EPROBE_DEFER)
|
"failed to acquire xo clk\n");
|
||||||
dev_err(&iris->dev, "failed to acquire xo clk\n");
|
|
||||||
goto err_device_del;
|
goto err_device_del;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user