Delete hil proc in remoteproc only
[processor-sdk/open-amp.git] / lib / rpmsg / remote_device.c
index 930c9e61a20c8a64f905b1a62ef61457dc115f57..80ad83cf4b3ff59255e66081d0b0d8e660623839 100644 (file)
@@ -224,10 +224,6 @@ void rpmsg_rdev_deinit(struct remote_device *rdev)
        metal_mutex_release(&rdev->lock);
        hil_free_vqs(&rdev->virt_dev);
 
-       if (rdev->proc) {
-               hil_delete_proc(rdev->proc);
-               rdev->proc = 0;
-       }
        metal_mutex_deinit(&rdev->lock);
 
        metal_free_memory(rdev);