]> err.no Git - linux-2.6/commitdiff
ACPI: fan: build fix for CONFIG_ACPI_PROCFS=n
authorLen Brown <len.brown@intel.com>
Sat, 2 Feb 2008 09:05:54 +0000 (04:05 -0500)
committerLen Brown <len.brown@intel.com>
Sat, 2 Feb 2008 09:05:54 +0000 (04:05 -0500)
drivers/acpi/fan.c:340: error: ‘acpi_fan_dir’ undeclared (first use in this function)

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/fan.c

index f6e8165c32e8e6424e44f67b1dc028d221c91459..48cb705b274afb837129ae6d13ead27f8f2c6ccc 100644 (file)
@@ -337,10 +337,12 @@ static int __init acpi_fan_init(void)
        int result = 0;
 
 
+#ifdef CONFIG_ACPI_PROCFS
        acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir);
        if (!acpi_fan_dir)
                return -ENODEV;
        acpi_fan_dir->owner = THIS_MODULE;
+#endif
 
        result = acpi_bus_register_driver(&acpi_fan_driver);
        if (result < 0) {