hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/remoteproc/qcom_q6v5_pas.c
....@@ -365,6 +365,7 @@
365365 }
366366
367367 ret = of_address_to_resource(node, 0, &r);
368
+ of_node_put(node);
368369 if (ret)
369370 return ret;
370371
....@@ -472,6 +473,7 @@
472473 detach_active_pds:
473474 adsp_pds_detach(adsp, adsp->active_pds, adsp->active_pd_count);
474475 free_rproc:
476
+ device_init_wakeup(adsp->dev, false);
475477 rproc_free(rproc);
476478
477479 return ret;
....@@ -487,6 +489,8 @@
487489 qcom_remove_sysmon_subdev(adsp->sysmon);
488490 qcom_remove_smd_subdev(adsp->rproc, &adsp->smd_subdev);
489491 qcom_remove_ssr_subdev(adsp->rproc, &adsp->ssr_subdev);
492
+ adsp_pds_detach(adsp, adsp->proxy_pds, adsp->proxy_pd_count);
493
+ device_init_wakeup(adsp->dev, false);
490494 rproc_free(adsp->rproc);
491495
492496 return 0;