Commit 0ece01c6 authored by Stefan Wahren's avatar Stefan Wahren Committed by Greg Kroah-Hartman

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: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0feb1ed5
...@@ -2975,6 +2975,7 @@ static int vchiq_probe(struct platform_device *pdev) ...@@ -2975,6 +2975,7 @@ static int vchiq_probe(struct platform_device *pdev)
static int vchiq_remove(struct platform_device *pdev) static int vchiq_remove(struct platform_device *pdev)
{ {
vchiq_debugfs_deinit();
device_destroy(vchiq_class, vchiq_devid); device_destroy(vchiq_class, vchiq_devid);
class_destroy(vchiq_class); class_destroy(vchiq_class);
cdev_del(&vchiq_cdev); cdev_del(&vchiq_cdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment