Skip to content

Commit 70d3581

Browse files
krzkandersson
authored andcommitted
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 <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent f21e504 commit 70d3581

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/remoteproc/qcom_wcnss_iris.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,8 @@ struct qcom_iris *qcom_iris_probe(struct device *parent, bool *use_48mhz_xo)
155155

156156
iris->xo_clk = devm_clk_get(&iris->dev, "xo");
157157
if (IS_ERR(iris->xo_clk)) {
158-
ret = PTR_ERR(iris->xo_clk);
159-
if (ret != -EPROBE_DEFER)
160-
dev_err(&iris->dev, "failed to acquire xo clk\n");
158+
ret = dev_err_probe(&iris->dev, PTR_ERR(iris->xo_clk),
159+
"failed to acquire xo clk\n");
161160
goto err_device_del;
162161
}
163162

0 commit comments

Comments
 (0)