Commit 3c602840 authored by Len Brown's avatar Len Brown

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: default avatarLen Brown <len.brown@intel.com>
parent 653a00c9
...@@ -337,10 +337,12 @@ static int __init acpi_fan_init(void) ...@@ -337,10 +337,12 @@ static int __init acpi_fan_init(void)
int result = 0; int result = 0;
#ifdef CONFIG_ACPI_PROCFS
acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir); acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir);
if (!acpi_fan_dir) if (!acpi_fan_dir)
return -ENODEV; return -ENODEV;
acpi_fan_dir->owner = THIS_MODULE; acpi_fan_dir->owner = THIS_MODULE;
#endif
result = acpi_bus_register_driver(&acpi_fan_driver); result = acpi_bus_register_driver(&acpi_fan_driver);
if (result < 0) { if (result < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment