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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 10:05:47 +0000 (11:05 +0100)
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 90296c2..89fa081 100644 (file)
@@ -2975,6 +2975,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);