Browse Source

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 <bjorn.andersson@linaro.org>
Bjorn Andersson 8 years ago
parent
commit
90a80d88d2
2 changed files with 4 additions and 4 deletions
  1. 2 2
      drivers/remoteproc/qcom_adsp_pil.c
  2. 2 2
      drivers/remoteproc/st_slim_rproc.c

+ 2 - 2
drivers/remoteproc/qcom_adsp_pil.c

@@ -391,7 +391,7 @@ static int adsp_probe(struct platform_device *pdev)
 	return 0;
 	return 0;
 
 
 free_rproc:
 free_rproc:
-	rproc_put(rproc);
+	rproc_free(rproc);
 
 
 	return ret;
 	return ret;
 }
 }
@@ -402,7 +402,7 @@ static int adsp_remove(struct platform_device *pdev)
 
 
 	qcom_smem_state_put(adsp->state);
 	qcom_smem_state_put(adsp->state);
 	rproc_del(adsp->rproc);
 	rproc_del(adsp->rproc);
-	rproc_put(adsp->rproc);
+	rproc_free(adsp->rproc);
 
 
 	return 0;
 	return 0;
 }
 }

+ 2 - 2
drivers/remoteproc/st_slim_rproc.c

@@ -330,7 +330,7 @@ err_clk_put:
 	for (i = 0; i < ST_SLIM_MAX_CLK && slim_rproc->clks[i]; i++)
 	for (i = 0; i < ST_SLIM_MAX_CLK && slim_rproc->clks[i]; i++)
 		clk_put(slim_rproc->clks[i]);
 		clk_put(slim_rproc->clks[i]);
 err:
 err:
-	rproc_put(rproc);
+	rproc_free(rproc);
 	return ERR_PTR(err);
 	return ERR_PTR(err);
 }
 }
 EXPORT_SYMBOL(st_slim_rproc_alloc);
 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]);
 		clk_put(slim_rproc->clks[clk]);
 
 
 	rproc_del(slim_rproc->rproc);
 	rproc_del(slim_rproc->rproc);
-	rproc_put(slim_rproc->rproc);
+	rproc_free(slim_rproc->rproc);
 }
 }
 EXPORT_SYMBOL(st_slim_rproc_put);
 EXPORT_SYMBOL(st_slim_rproc_put);