[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1219139098-11033-1-git-send-email-Russ.Dill@gmail.com>
Date: Tue, 19 Aug 2008 02:44:58 -0700
From: Russ Dill <russ.dill@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Russ Dill <Russ.Dill@...il.com>
Subject: [PATCH] Remove debugfs entries upon unloading
The exit function neglects to remove debugfs entries, leading to a BUG
on reload.
Signed-off-by: Russ Dill <Russ.Dill@...il.com>
---
drivers/misc/acer-wmi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
index b2d9878..7a68351 100644
--- a/drivers/misc/acer-wmi.c
+++ b/drivers/misc/acer-wmi.c
@@ -1267,6 +1267,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);
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists