# HG changeset patch # User Hollis Blanchard # Date 1164144302 21600 # Node ID d6b44cb7d2c967b5ae00a6a61f4a005e7859c74e # Parent da882f0212d6e47824238cd791447a09f927e1ee [POWERPC][XEN] Ignore device tree nodes missing "device_type". The latest release of SLOF is missing mandatory "device_type" properties for the ISA and system-controller busses. Work around it by just printing a warning and continuing. CC: Segher Boessenkool Signed-off-by: Amos Waterland Signed-off-by: Hollis Blanchard diff -r da882f0212d6 -r d6b44cb7d2c9 xen/arch/powerpc/boot_of.c --- a/xen/arch/powerpc/boot_of.c Sat Nov 11 12:04:45 2006 -0500 +++ b/xen/arch/powerpc/boot_of.c Tue Nov 21 15:25:02 2006 -0600 @@ -818,8 +818,10 @@ static int __init boot_of_serial(void *o of_panic("package-to-path failed\n"); rc = of_getprop(p, "device_type", type, sizeof (type)); - if (rc == OF_FAILURE) - of_panic("fetching device type failed\n"); + if (rc == OF_FAILURE) { + of_printf("%s: fetching type of `%s' failed\n", __func__, buf); + continue; + } if (strcmp(type, "serial") != 0) continue;