Fix the build. This error was introduced by change in acpi.c, the acpi_slp_type exist...
authorRudolf Marek <r.marek@assembler.cz>
Mon, 13 Apr 2009 21:42:49 +0000 (21:42 +0000)
committerRudolf Marek <r.marek@assembler.cz>
Mon, 13 Apr 2009 21:42:49 +0000 (21:42 +0000)
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

src/southbridge/via/vt8237r/vt8237r_lpc.c

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