ACPI: cleanup: make disable_acpi() valid w/o CONFIG_ACPI
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 12 Feb 2007 03:39:38 +0000 (14:39 +1100)
committerLen Brown <len.brown@intel.com>
Tue, 13 Feb 2007 05:09:13 +0000 (00:09 -0500)
Len Brown <lenb@kernel.org> said:
> Okay, but better to use disable_acpi()
> indeed, since this would be the first code not already inside CONFIG_ACPI
> to invoke disable_acpi(), we could define the inline as empty and you could
> then scratch the #ifdef too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Len Brown <len.brown@intel.com>
include/asm-i386/acpi.h

index 5e657eb8946c953bc0b58846344653cc9d1eaa9c..449f3f272e070753c25877e5b23445ffbd75ac4f 100644 (file)
@@ -127,6 +127,7 @@ extern int acpi_irq_balance_set(char *str);
 #define acpi_ioapic 0
 static inline void acpi_noirq_set(void) { }
 static inline void acpi_disable_pci(void) { }
+static inline void disable_acpi(void) { }
 
 #endif /* !CONFIG_ACPI */