[PATCH] prom_find_machine_type typo breaks pSeries lpar boot

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>

authored by Nathan Lynch and committed by Linus Torvalds 8be3de3f d8d088d2

+1 -1
+1 -1
arch/ppc64/kernel/prom_init.c
··· 1370 1370 } 1371 1371 /* Default to pSeries. We need to know if we are running LPAR */ 1372 1372 rtas = call_prom("finddevice", 1, 1, ADDR("/rtas")); 1373 - if (!PHANDLE_VALID(rtas)) { 1373 + if (PHANDLE_VALID(rtas)) { 1374 1374 int x = prom_getproplen(rtas, "ibm,hypertas-functions"); 1375 1375 if (x != PROM_ERROR) { 1376 1376 prom_printf("Hypertas detected, assuming LPAR !\n");