Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362331
b: refs/heads/master
c: 1cd425b
h: refs/heads/master
i:
  362329: df61e90
  362327: 82dfa5d
v: v3
  • Loading branch information
Dmitry Tarnyagin authored and Ohad Ben-Cohen committed Apr 5, 2013
1 parent 3a93241 commit 0da6b34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b39599b7cb8f295205b04827ff82e3afec687cde
refs/heads/master: 1cd425b660bd5b4f41b9175b0b7bf3828ce88144
7 changes: 6 additions & 1 deletion trunk/drivers/remoteproc/ste_modem_rproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ static int sproc_drv_remove(struct platform_device *pdev)

/* Unregister as remoteproc device */
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);

mdev->drv_data = NULL;
Expand Down Expand Up @@ -297,10 +299,13 @@ static int sproc_probe(struct platform_device *pdev)
/* Register as a remoteproc device */
err = rproc_add(rproc);
if (err)
goto free_rproc;
goto free_mem;

return 0;

free_mem:
dma_free_coherent(rproc->dev.parent, SPROC_FW_SIZE,
sproc->fw_addr, sproc->fw_dma_addr);
free_rproc:
/* Reset device data upon error */
mdev->drv_data = NULL;
Expand Down

0 comments on commit 0da6b34

Please sign in to comment.