]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/remoteproc/ste_modem_rproc.c
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-beck.git] / drivers / remoteproc / ste_modem_rproc.c
index 53dc17bdd54e0c3ef94f03a345e2d31e5a5bdfe6..03d69a9a3c5b733ee78d7504c8d3ba8f9db38851 100644 (file)
@@ -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;
 }