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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user