aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/remoteproc/da8xx_remoteproc.c
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2016-10-02 17:46:38 -0700
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-10-02 22:50:21 -0700
commit433c0e04bc06da6d049c691a9ef238d61edb841c (patch)
tree8eed5266b333c8f65775284f3c69b3a6895b37d5 /drivers/remoteproc/da8xx_remoteproc.c
parentremoteproc: Correct resource handling upon boot failure (diff)
downloadwireguard-linux-433c0e04bc06da6d049c691a9ef238d61edb841c.tar.xz
wireguard-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/da8xx_remoteproc.c')
-rw-r--r--drivers/remoteproc/da8xx_remoteproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/da8xx_remoteproc.c b/drivers/remoteproc/da8xx_remoteproc.c
index 12823d078e1e..1afac8f31be0 100644
--- a/drivers/remoteproc/da8xx_remoteproc.c
+++ b/drivers/remoteproc/da8xx_remoteproc.c
@@ -261,7 +261,7 @@ static int da8xx_rproc_probe(struct platform_device *pdev)
return 0;
free_rproc:
- rproc_put(rproc);
+ rproc_free(rproc);
return ret;
}
@@ -290,7 +290,7 @@ static int da8xx_rproc_remove(struct platform_device *pdev)
disable_irq(drproc->irq);
rproc_del(rproc);
- rproc_put(rproc);
+ rproc_free(rproc);
return 0;
}