interconnect: qcom: rpmh: fix probe child-node error handling
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 6 Mar 2023 07:56:37 +0000 (08:56 +0100)
committerGeorgi Djakov <djakov@kernel.org>
Mon, 13 Mar 2023 19:13:47 +0000 (21:13 +0200)
commit6570d1d46eeade82965ccc4a3ab7d778898ef4bf
tree98e8a80bddc82fcd56509333edbe59c7aca30b6e
parent90ae93d8affc1061cd87ca8ddd9a838c7d31a158
interconnect: qcom: rpmh: fix probe child-node error handling

Make sure to clean up and release resources properly also in case probe
fails when populating child devices.

Fixes: 57eb14779dfd ("interconnect: qcom: icc-rpmh: Support child NoC device probe")
Cc: stable@vger.kernel.org # 6.0
Cc: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230306075651.2449-10-johan+linaro@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/qcom/icc-rpmh.c