mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
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:
parent
0feb1ed5c5
commit
0ece01c67f
1 changed files with 1 additions and 0 deletions
|
@ -2975,6 +2975,7 @@ static int vchiq_probe(struct platform_device *pdev)
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue