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 <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Stefan Wahren 2016-10-31 14:39:32 +00:00 committed by Greg Kroah-Hartman
parent 0feb1ed5c5
commit 0ece01c67f
1 changed files with 1 additions and 0 deletions

View 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);