提交 7d964c35 编写于 作者: R Russ Dill 提交者: Andi Kleen

acer-wmi: remove debugfs entries upon unloading

The exit function neglects to remove debugfs entries, leading to a BUG
on reload.

[akpm@linux-foundation.org: cleanups]
Signed-off-by: NRuss Dill <Russ.Dill@gmail.com>
Acked-by: NCarlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NAndi Kleen <ak@linux.intel.com>
上级 b635acec
......@@ -1167,7 +1167,7 @@ static int create_debugfs(void)
return 0;
error_debugfs:
remove_debugfs();
remove_debugfs();
return -ENOMEM;
}
......@@ -1248,6 +1248,7 @@ static int __init acer_wmi_init(void)
static void __exit acer_wmi_exit(void)
{
remove_sysfs(acer_platform_device);
remove_debugfs();
platform_device_del(acer_platform_device);
platform_driver_unregister(&acer_platform_driver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册