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:
@@ -257,7 +257,7 @@ static int sproc_drv_remove(struct platform_device *pdev)
|
||||
rproc_del(sproc->rproc);
|
||||
dma_free_coherent(sproc->rproc->dev.parent, SPROC_FW_SIZE,
|
||||
sproc->fw_addr, sproc->fw_dma_addr);
|
||||
rproc_put(sproc->rproc);
|
||||
rproc_free(sproc->rproc);
|
||||
|
||||
mdev->drv_data = NULL;
|
||||
|
||||
@@ -325,7 +325,7 @@ free_mem:
|
||||
free_rproc:
|
||||
/* Reset device data upon error */
|
||||
mdev->drv_data = NULL;
|
||||
rproc_put(rproc);
|
||||
rproc_free(rproc);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user