soc: qcom: ocmem: Use dev_err_probe where appropriate
authorLuca Weiss <luca@z3ntu.xyz>
Wed, 14 Jun 2023 16:35:48 +0000 (18:35 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 10 Jul 2023 03:54:39 +0000 (20:54 -0700)
commit7a2fcba1f4031fa472f069fcd856f19d367b5808
tree25588af81c40877e2fc28a23815d655740376f71
parenta7b484b1c9332a1ee12e8799d62a11ee3f8e0801
soc: qcom: ocmem: Use dev_err_probe where appropriate

Use dev_err_probe in the driver probe function where useful, to simplify
getting PTR_ERR and to ensure the underlying errors are included in the
error message.

Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20230506-msm8226-ocmem-v3-2-79da95a2581f@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/ocmem.c