ACPI: fan: Fix more unbalanced code block
authorLuis Henriques <luis.henrix@gmail.com>
Wed, 7 Jul 2010 18:30:15 +0000 (19:30 +0100)
committerLen Brown <len.brown@intel.com>
Wed, 29 Sep 2010 18:08:10 +0000 (14:08 -0400)
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>
drivers/acpi/fan.c

index 8a3b840..d94d295 100644 (file)
@@ -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;
 }