diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-10-03 02:46:38 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-10-03 07:50:21 +0200 |
commit | 433c0e04bc06da6d049c691a9ef238d61edb841c (patch) | |
tree | 8eed5266b333c8f65775284f3c69b3a6895b37d5 /drivers/remoteproc/st_remoteproc.c | |
parent | remoteproc: Correct resource handling upon boot failure (diff) | |
download | linux-433c0e04bc06da6d049c691a9ef238d61edb841c.tar.xz 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/st_remoteproc.c')
-rw-r--r-- | drivers/remoteproc/st_remoteproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/st_remoteproc.c b/drivers/remoteproc/st_remoteproc.c index 6f056caa8a56..ae8963fcc8c8 100644 --- a/drivers/remoteproc/st_remoteproc.c +++ b/drivers/remoteproc/st_remoteproc.c @@ -262,7 +262,7 @@ static int st_rproc_probe(struct platform_device *pdev) return 0; free_rproc: - rproc_put(rproc); + rproc_free(rproc); return ret; } @@ -277,7 +277,7 @@ static int st_rproc_remove(struct platform_device *pdev) of_reserved_mem_device_release(&pdev->dev); - rproc_put(rproc); + rproc_free(rproc); return 0; } |