summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorRuss Dill <russ.dill@gmail.com>2008-09-02 14:35:40 -0700
committerAndi Kleen <ak@linux.intel.com>2008-09-04 14:40:48 +0200
commit7d964c352b06aabb895e39d3b479e105bd9d1ca0 (patch)
tree0b6684844032b6aa7df2585b44d65bf74b344e12 /drivers/misc
parentb635acec48bcaa9183fcbf4e3955616b0d4119b5 (diff)
downloadlinux-7d964c352b06aabb895e39d3b479e105bd9d1ca0.tar.gz
linux-7d964c352b06aabb895e39d3b479e105bd9d1ca0.tar.xz
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: Russ Dill <Russ.Dill@gmail.com> Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk> Cc: Andi Kleen <ak@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/acer-wmi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
index e7a3fe508dff..9c883f8b3896 100644
--- a/drivers/misc/acer-wmi.c
+++ b/drivers/misc/acer-wmi.c
@@ -1167,7 +1167,7 @@ static int create_debugfs(void)
return 0;
error_debugfs:
- remove_debugfs();
+ remove_debugfs();
return -ENOMEM;
}
@@ -1248,6 +1248,7 @@ error_platform_register:
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);