remoteproc: not del remoteproc after deinit rpmsg
authorWendy Liang <jliang@xilinx.com>
Tue, 9 Aug 2016 22:45:22 +0000 (15:45 -0700)
committerWendy Liang <jliang@xilinx.com>
Thu, 13 Oct 2016 05:01:47 +0000 (22:01 -0700)
Remoteproc is deleted when deinit rpmsg, do not delete
the remoteproc again.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/remoteproc/remoteproc.c

index f7e66018e97d1b6d5bebb343cd2bed9762f14578..723cd5d9ff33485bbdb6393a6ffe8735bc5b380d 100644 (file)
@@ -128,10 +128,6 @@ int remoteproc_resource_deinit(struct remote_proc *rproc)
                if (rproc->rdev) {
                        rpmsg_deinit(rproc->rdev);
                }
-               if (rproc->proc) {
-                       hil_delete_proc(rproc->proc);
-               }
-
                env_free_memory(rproc);
        }