summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/fan.c
diff options
context:
space:
mode:
authorLuis Henriques <luis.henrix@gmail.com>2010-07-07 20:30:15 +0200
committerLen Brown <len.brown@intel.com>2010-09-29 20:08:10 +0200
commit0c827eebfcd5caad24a50bc514ef15476b086e47 (patch)
tree093f2ce944471c3b95374c6ec934ea4ff7aaea2d /drivers/acpi/fan.c
parentACPI: acpi_pad: simplify code to avoid false gcc build warning (diff)
downloadlinux-0c827eebfcd5caad24a50bc514ef15476b086e47.tar.xz
linux-0c827eebfcd5caad24a50bc514ef15476b086e47.zip
ACPI: fan: Fix more unbalanced code block
commit 934231de706d2579fae14f5857fcd8de991009ff fixes an unbalanced CONFIG_ACPI_PROCFS code block during module initialisation. This patch fixes similar issue but for the module exit. Signed-off-by: Luis Henriques <luis.henrix@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/fan.c')
-rw-r--r--drivers/acpi/fan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index 8a3b840c0bb2..d94d2953c974 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -369,7 +369,9 @@ static void __exit acpi_fan_exit(void)
acpi_bus_unregister_driver(&acpi_fan_driver);
+#ifdef CONFIG_ACPI_PROCFS
remove_proc_entry(ACPI_FAN_CLASS, acpi_root_dir);
+#endif
return;
}