[PATCH] prom_find_machine_type typo breaks pSeries lpar boot
authorNathan Lynch <ntl@pobox.com>
Fri, 3 Jun 2005 19:25:25 +0000 (14:25 -0500)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 3 Jun 2005 20:20:04 +0000 (13:20 -0700)
A typo in prom_find_machine_type from Ben's recent patch "ppc64: Fix
result code handling in prom_init" prevents pSeries LPAR systems from
booting.

Tested on a pSeries 570 and OpenPower 720 (both Power5 LPAR).

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/prom_init.c

index 1ac531b..b7683ab 100644 (file)
@@ -1370,7 +1370,7 @@ static int __init prom_find_machine_type(void)
        }
        /* Default to pSeries. We need to know if we are running LPAR */
        rtas = call_prom("finddevice", 1, 1, ADDR("/rtas"));
-       if (!PHANDLE_VALID(rtas)) {
+       if (PHANDLE_VALID(rtas)) {
                int x = prom_getproplen(rtas, "ibm,hypertas-functions");
                if (x != PROM_ERROR) {
                        prom_printf("Hypertas detected, assuming LPAR !\n");