Skip to content

Commit

Permalink
ACPI: fan: build fix for CONFIG_ACPI_PROCFS=n
Browse files Browse the repository at this point in the history
drivers/acpi/fan.c:340: error: ‘acpi_fan_dir’ undeclared (first use in this function)

Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Len Brown committed Feb 2, 2008
1 parent 653a00c commit 3c60284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/acpi/fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3c60284

Please sign in to comment.