Fix the build. This error was introduced by change in acpi.c, the acpi_slp_type exists only conditionally.

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Rudolf Marek <r.marek@assembler.cz>
 


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4108 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Rudolf Marek 2009-04-13 21:42:49 +00:00
parent 5c4f8392e0
commit 299a00feb8
1 changed files with 2 additions and 0 deletions

View File

@ -225,8 +225,10 @@ static void setup_pm(device_t dev)
/* SCI is generated for RTC/pwrBtn/slpBtn. */ /* SCI is generated for RTC/pwrBtn/slpBtn. */
tmp = inw(VT8237R_ACPI_IO_BASE + 0x04); tmp = inw(VT8237R_ACPI_IO_BASE + 0x04);
#if HAVE_ACPI_RESUME == 1
acpi_slp_type = ((tmp & (7 << 10)) >> 10) == 1 ? 3 : 0 ; acpi_slp_type = ((tmp & (7 << 10)) >> 10) == 1 ? 3 : 0 ;
printk_debug("SLP_TYP type was %x %x\n", tmp, acpi_slp_type); printk_debug("SLP_TYP type was %x %x\n", tmp, acpi_slp_type);
#endif
/* clear sleep */ /* clear sleep */
tmp &= ~(7 << 10); tmp &= ~(7 << 10);
tmp |= 1; tmp |= 1;