ia64/xen-unstable

changeset 12962:d6b44cb7d2c9

[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 <segher@kernel.crashing.org>
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Tue Nov 21 15:25:02 2006 -0600 (2006-11-21)
parents da882f0212d6
children 5909f57c8c39
files xen/arch/powerpc/boot_of.c
line diff
     1.1 --- a/xen/arch/powerpc/boot_of.c	Sat Nov 11 12:04:45 2006 -0500
     1.2 +++ b/xen/arch/powerpc/boot_of.c	Tue Nov 21 15:25:02 2006 -0600
     1.3 @@ -818,8 +818,10 @@ static int __init boot_of_serial(void *o
     1.4              of_panic("package-to-path failed\n");
     1.5  
     1.6          rc = of_getprop(p, "device_type", type, sizeof (type));
     1.7 -        if (rc == OF_FAILURE)
     1.8 -            of_panic("fetching device type failed\n");
     1.9 +        if (rc == OF_FAILURE) {
    1.10 +            of_printf("%s: fetching type of `%s' failed\n", __func__, buf);
    1.11 +            continue;
    1.12 +        }
    1.13  
    1.14          if (strcmp(type, "serial") != 0)
    1.15              continue;