remoteproc: qcom: adsp: Remove subdevs on the error path of adsp_probe()
authorJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Fri, 8 Nov 2024 04:13:54 +0000 (13:13 +0900)
committerBjorn Andersson <andersson@kernel.org>
Sat, 16 Nov 2024 03:25:29 +0000 (19:25 -0800)
commitfe80d3205e91e36e67f4d3d6c326793298d15766
treeb5f3c369e66d2f10d041dfd7c4432d3f95570135
parent587b67cf62a91b10a47f41c20ed8ad71db375334
remoteproc: qcom: adsp: Remove subdevs on the error path of adsp_probe()

Current implementation of adsp_probe() in qcom_q6v5_adsp.c and does not
remove the subdevs of adsp on the error path. Fix this bug by calling
qcom_remove_{ssr,sysmon,pdm,smd,glink}_subdev(), and qcom_q6v5_deinit()
appropriately.

Fixes: dc160e449122 ("remoteproc: qcom: Introduce Non-PAS ADSP PIL driver")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Link: https://lore.kernel.org/r/fed3df4219543d46b88bacf87990d947f3fac8d7.1731038950.git.joe@pf.is.s.u-tokyo.ac.jp
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/remoteproc/qcom_q6v5_adsp.c