remoteproc: qcom_q6v5_pas: disable wakeup on probe fail or remove
[platform/kernel/linux-rpi.git] / drivers / remoteproc / qcom_q6v5_pas.c
index 78d90d8..533b485 100644 (file)
@@ -498,6 +498,7 @@ detach_proxy_pds:
 detach_active_pds:
        adsp_pds_detach(adsp, adsp->active_pds, adsp->active_pd_count);
 free_rproc:
+       device_init_wakeup(adsp->dev, false);
        rproc_free(rproc);
 
        return ret;
@@ -513,6 +514,7 @@ static int adsp_remove(struct platform_device *pdev)
        qcom_remove_sysmon_subdev(adsp->sysmon);
        qcom_remove_smd_subdev(adsp->rproc, &adsp->smd_subdev);
        qcom_remove_ssr_subdev(adsp->rproc, &adsp->ssr_subdev);
+       device_init_wakeup(adsp->dev, false);
        rproc_free(adsp->rproc);
 
        return 0;