diff options
author | Len Brown <len.brown@intel.com> | 2008-02-02 04:05:54 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-02 04:05:54 -0500 |
commit | 3c602840528cf1aa835e6e32d76a0a45936b8e4c (patch) | |
tree | 3431130cbbe16e9f29f167547490dfd60327eeeb /drivers/acpi/fan.c | |
parent | 653a00c9662304ef72a3eb4e681c91720960e0b4 (diff) |
ACPI: fan: build fix for CONFIG_ACPI_PROCFS=n
drivers/acpi/fan.c:340: error: ‘acpi_fan_dir’ undeclared (first use in this function)
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/fan.c')
-rw-r--r-- | drivers/acpi/fan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index f6e8165c32e8..48cb705b274a 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c | |||
@@ -337,10 +337,12 @@ static int __init acpi_fan_init(void) | |||
337 | int result = 0; | 337 | int result = 0; |
338 | 338 | ||
339 | 339 | ||
340 | #ifdef CONFIG_ACPI_PROCFS | ||
340 | acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir); | 341 | acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir); |
341 | if (!acpi_fan_dir) | 342 | if (!acpi_fan_dir) |
342 | return -ENODEV; | 343 | return -ENODEV; |
343 | acpi_fan_dir->owner = THIS_MODULE; | 344 | acpi_fan_dir->owner = THIS_MODULE; |
345 | #endif | ||
344 | 346 | ||
345 | result = acpi_bus_register_driver(&acpi_fan_driver); | 347 | result = acpi_bus_register_driver(&acpi_fan_driver); |
346 | if (result < 0) { | 348 | if (result < 0) { |