From: Stefan Wahren Date: Mon, 31 Oct 2016 14:39:32 +0000 (+0000) Subject: staging: vchiq_arm: remove debugfs entries on module unload X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0ece01c67fc8eb9f2e523a7e1bc1826fbb837c1e;p=linux-beck.git staging: vchiq_arm: remove debugfs entries on module unload 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 90296c268a79..89fa08148f3e 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -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);