remoteproc: zynq: do not free proc mem in release
authorWendy Liang <jliang@xilinx.com>
Thu, 3 Nov 2016 18:51:51 +0000 (11:51 -0700)
committerWendy Liang <jliang@xilinx.com>
Thu, 3 Nov 2016 18:51:51 +0000 (11:51 -0700)
As the hil_proc memory is allocated and free in the hil APIs.
We should not free it in the remoteproc driver.

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

index dfe93f75dc546603bd65a4c5a960c79b58b1f100..b94eb28785622f0b0c5dcc370d5180f246cefd48 100644 (file)
@@ -277,8 +277,6 @@ static int _initialize(struct hil_proc *proc)
 
 static void _release(struct hil_proc *proc)
 {
 
 static void _release(struct hil_proc *proc)
 {
-       if (proc) {
-               metal_free_memory(proc);
-       }
+       return;
 }
 
 }