]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] IPMI build fix
authorAndrew Morton <akpm@osdl.org>
Fri, 1 Aug 2003 03:11:03 +0000 (20:11 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 1 Aug 2003 03:11:03 +0000 (20:11 -0700)
From: Adrian Bunk <bunk@fs.tum.de>

Fix ACPI compile error if doing processor probing only: acpi_find_bmc is
only available #ifdef CONFIG_ACPI_INTERPRETER.

drivers/char/ipmi/ipmi_kcs_intf.c

index 8b818e361537222a60c2d0e33678bbee2573aecf..e47ab34a809fd45e4e40d077b8d4eff66a676aa9 100644 (file)
@@ -1016,7 +1016,7 @@ static int init_one_kcs(int kcs_port,
        return rv;
 }
 
-#ifdef CONFIG_ACPI
+#ifdef CONFIG_ACPI_INTERPRETER
 
 /* Retrieve the base physical address from ACPI tables.  Originally
    from Hewlett-Packard simple bmc.c, a GPL KCS driver. */
@@ -1072,7 +1072,7 @@ static __init int init_ipmi_kcs(void)
        int             rv = 0;
        int             pos = 0;
        int             i = 0;
-#ifdef CONFIG_ACPI
+#ifdef CONFIG_ACPI_INTERPRETER
        unsigned long   physaddr = 0;
 #endif
 
@@ -1102,7 +1102,7 @@ static __init int init_ipmi_kcs(void)
           (because they weren't already specified above). */
 
        if (kcs_trydefaults) {
-#ifdef CONFIG_ACPI
+#ifdef CONFIG_ACPI_INTERPRETER
                if ((physaddr = acpi_find_bmc())) {
                        if (!check_mem_region(physaddr, 2)) {
                                rv = init_one_kcs(0,