ia64/xen-unstable

changeset 11058:9d5d7d8b7125

[POWERPC] finddevice must return a phandle of -1
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Tue Aug 01 16:42:48 2006 -0400 (2006-08-01)
parents c8870f1aa5ca
children ecd673684ec8
files xen/arch/powerpc/of_handler/devtree.c
line diff
     1.1 --- a/xen/arch/powerpc/of_handler/devtree.c	Wed Aug 02 13:56:41 2006 -0500
     1.2 +++ b/xen/arch/powerpc/of_handler/devtree.c	Tue Aug 01 16:42:48 2006 -0400
     1.3 @@ -203,12 +203,14 @@ ofh_finddevice(u32 nargs, u32 nrets, s32
     1.4              /* good enuff */
     1.5              if (devspec[0] == '\0') {
     1.6                  if (*ap == -1) {
     1.7 +                    *ph = -1;
     1.8                      return OF_FAILURE;
     1.9                  }
    1.10                  *ph = *ap;
    1.11              } else {
    1.12                  *ph = ofd_node_find(mem, devspec);
    1.13                  if (*ph <= 0) {
    1.14 +                    *ph = -1;
    1.15                      return OF_FAILURE;
    1.16                  }
    1.17              }