summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc/wkup_m3_rproc.c
diff options
context:
space:
mode:
authorBjorn Andersson2016-10-03 02:46:38 +0200
committerBjorn Andersson2016-10-03 07:50:21 +0200
commit433c0e04bc06da6d049c691a9ef238d61edb841c (patch)
tree8eed5266b333c8f65775284f3c69b3a6895b37d5 /drivers/remoteproc/wkup_m3_rproc.c
parentremoteproc: Correct resource handling upon boot failure (diff)
downloadkernel-qcow2-linux-433c0e04bc06da6d049c691a9ef238d61edb841c.tar.gz
kernel-qcow2-linux-433c0e04bc06da6d049c691a9ef238d61edb841c.tar.xz
kernel-qcow2-linux-433c0e04bc06da6d049c691a9ef238d61edb841c.zip
remoteproc: Split driver and consumer dereferencing
In order to be able to lock a rproc driver implementations only when used by a client, we must differ between the dereference operation of a client and the implementation itself. This patch brings no functional change. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/wkup_m3_rproc.c')
-rw-r--r--drivers/remoteproc/wkup_m3_rproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/wkup_m3_rproc.c b/drivers/remoteproc/wkup_m3_rproc.c
index 3811cb522af3..18175d0331fd 100644
--- a/drivers/remoteproc/wkup_m3_rproc.c
+++ b/drivers/remoteproc/wkup_m3_rproc.c
@@ -208,7 +208,7 @@ static int wkup_m3_rproc_probe(struct platform_device *pdev)
return 0;
err_put_rproc:
- rproc_put(rproc);
+ rproc_free(rproc);
err:
pm_runtime_put_noidle(dev);
pm_runtime_disable(dev);
@@ -220,7 +220,7 @@ static int wkup_m3_rproc_remove(struct platform_device *pdev)
struct rproc *rproc = platform_get_drvdata(pdev);
rproc_del(rproc);
- rproc_put(rproc);
+ rproc_free(rproc);
pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);