staging: vchiq_arm: remove debugfs entries on module unload
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 31 Oct 2016 14:39:32 +0000 (14:39 +0000)
committerJaechul Lee <jcsing.lee@samsung.com>
Fri, 18 Aug 2017 01:04:49 +0000 (10:04 +0900)
This removes the debugfs entries on module unload and fix one
of the many kernel oops after loading the module again.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index 3fcb8a1..0dba7c1 100644 (file)
@@ -2986,6 +2986,7 @@ failed_debugfs_init:
 
 static int vchiq_remove(struct platform_device *pdev)
 {
+       vchiq_debugfs_deinit();
        device_destroy(vchiq_class, vchiq_devid);
        class_destroy(vchiq_class);
        cdev_del(&vchiq_cdev);