diff mbox

[1/1] ACPI: fan: Fix more unbalanced code block

Message ID 20100904142409.GA19040@hades (mailing list archive)
State New, archived
Headers show

Commit Message

Luis Henriques Sept. 4, 2010, 2:24 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index 8a3b840..d94d295 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;
 }