| .. | .. |
|---|
| 365 | 365 | } |
|---|
| 366 | 366 | |
|---|
| 367 | 367 | ret = of_address_to_resource(node, 0, &r); |
|---|
| 368 | + of_node_put(node); |
|---|
| 368 | 369 | if (ret) |
|---|
| 369 | 370 | return ret; |
|---|
| 370 | 371 | |
|---|
| .. | .. |
|---|
| 472 | 473 | detach_active_pds: |
|---|
| 473 | 474 | adsp_pds_detach(adsp, adsp->active_pds, adsp->active_pd_count); |
|---|
| 474 | 475 | free_rproc: |
|---|
| 476 | + device_init_wakeup(adsp->dev, false); |
|---|
| 475 | 477 | rproc_free(rproc); |
|---|
| 476 | 478 | |
|---|
| 477 | 479 | return ret; |
|---|
| .. | .. |
|---|
| 487 | 489 | qcom_remove_sysmon_subdev(adsp->sysmon); |
|---|
| 488 | 490 | qcom_remove_smd_subdev(adsp->rproc, &adsp->smd_subdev); |
|---|
| 489 | 491 | 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); |
|---|
| 490 | 494 | rproc_free(adsp->rproc); |
|---|
| 491 | 495 | |
|---|
| 492 | 496 | return 0; |
|---|