staging: vc-sm-cma: Remove the debugfs directory on remove
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Fri, 8 Mar 2019 10:49:17 +0000 (10:49 +0000)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:23 +0000 (00:08 +0100)
Without removing that, reloading the driver fails.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/vc-sm-cma/vc_sm.c

index 4bc738a..f70e3e7 100644 (file)
@@ -757,7 +757,7 @@ static int bcm2835_vc_sm_cma_remove(struct platform_device *pdev)
        pr_debug("[%s]: start\n", __func__);
        if (sm_inited) {
                /* Remove all proc entries. */
-               //debugfs_remove_recursive(sm_state->dir_root);
+               debugfs_remove_recursive(sm_state->dir_root);
 
                /* Stop the videocore shared memory service. */
                vc_sm_cma_vchi_stop(&sm_state->sm_handle);