Skip to contentSkip to conversation

ACPI: fan: Fix more unbalanced code block

PATCH New Luis Henriques 1 participant 1 message Jul 7, 2010 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/acpi/fan.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/acpi/fan.c +2 -0
index 8a3b840..d94d295 100644
@@ -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;
 }
Signature · 1 line
1.7.1