summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/fan.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2008-02-02 04:05:54 -0500
committerLen Brown <len.brown@intel.com>2008-02-02 04:05:54 -0500
commit3c602840528cf1aa835e6e32d76a0a45936b8e4c (patch)
tree3431130cbbe16e9f29f167547490dfd60327eeeb /drivers/acpi/fan.c
parent653a00c9662304ef72a3eb4e681c91720960e0b4 (diff)
downloadop-kernel-dev-3c602840528cf1aa835e6e32d76a0a45936b8e4c.zip
op-kernel-dev-3c602840528cf1aa835e6e32d76a0a45936b8e4c.tar.gz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index f6e8165..48cb705 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -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) {
OpenPOWER on IntegriCloud