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 8a3b840c0bb268d0580cd5550c41986bf3c09662..d94d2953c9740f34675eeb576e00e74ee621bfd2 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;
 }