From 90a80d88d2aac41f658ae4260ea259a292f95cb1 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Sat, 19 Nov 2016 22:42:55 -0800 Subject: [PATCH] remoteproc: Update last rproc_put users to rproc_free The transition from rproc_put to rproc_free raced with the review of the Qualcomm ADSP and ST SLIMproc drivers and these where not updated accordingly. Signed-off-by: Bjorn Andersson --- drivers/remoteproc/qcom_adsp_pil.c | 4 ++-- drivers/remoteproc/st_slim_rproc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/remoteproc/qcom_adsp_pil.c b/drivers/remoteproc/qcom_adsp_pil.c index cec09911384f..43a4ed2f346c 100644 --- a/drivers/remoteproc/qcom_adsp_pil.c +++ b/drivers/remoteproc/qcom_adsp_pil.c @@ -391,7 +391,7 @@ static int adsp_probe(struct platform_device *pdev) return 0; free_rproc: - rproc_put(rproc); + rproc_free(rproc); return ret; } @@ -402,7 +402,7 @@ static int adsp_remove(struct platform_device *pdev) qcom_smem_state_put(adsp->state); rproc_del(adsp->rproc); - rproc_put(adsp->rproc); + rproc_free(adsp->rproc); return 0; } diff --git a/drivers/remoteproc/st_slim_rproc.c b/drivers/remoteproc/st_slim_rproc.c index 1484e9717946..507716c8721f 100644 --- a/drivers/remoteproc/st_slim_rproc.c +++ b/drivers/remoteproc/st_slim_rproc.c @@ -330,7 +330,7 @@ struct st_slim_rproc *st_slim_rproc_alloc(struct platform_device *pdev, for (i = 0; i < ST_SLIM_MAX_CLK && slim_rproc->clks[i]; i++) clk_put(slim_rproc->clks[i]); err: - rproc_put(rproc); + rproc_free(rproc); return ERR_PTR(err); } EXPORT_SYMBOL(st_slim_rproc_alloc); @@ -355,7 +355,7 @@ void st_slim_rproc_put(struct st_slim_rproc *slim_rproc) clk_put(slim_rproc->clks[clk]); rproc_del(slim_rproc->rproc); - rproc_put(slim_rproc->rproc); + rproc_free(slim_rproc->rproc); } EXPORT_SYMBOL(st_slim_rproc_put); -- 2.45.2