Skip to content

Commit

Permalink
acer-wmi: remove debugfs entries upon unloading
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russ Dill authored and Andi Kleen committed Sep 4, 2008
1 parent b635ace commit 7d964c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/misc/acer-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ static int create_debugfs(void)
return 0;

error_debugfs:
remove_debugfs();
remove_debugfs();
return -ENOMEM;
}

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 7d964c3

Please sign in to comment.