interconnect: qcom: rpm: fix probe child-node error handling
commit
9eedc321e35b6a87e57149f237ea02c28896ef5d upstream.
Make sure to clean up and release resources properly also in case probe
fails when populating child devices.
Fixes: 2b61e2442823 ("interconnect: icc-rpm: Support child NoC device probe")
Cc: stable@vger.kernel.org # 5.17
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-7-johan+linaro@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>