Deleted Added
full compact
59c59
< __FBSDID("$FreeBSD: head/sys/dev/ofw/openfirm.c 208172 2010-05-16 22:01:43Z nwhitehorn $");
---
> __FBSDID("$FreeBSD: head/sys/dev/ofw/openfirm.c 208614 2010-05-28 10:43:56Z raj $");
60a61,62
> #include "opt_platform.h"
>
113c115
< void
---
> int
116a119
> int rv;
126c129
< OFW_INIT(ofw_obj, cookie);
---
> rv = OFW_INIT(ofw_obj, cookie);
128,131c131,135
< if ((chosen = OF_finddevice("/chosen")) == -1)
< OF_exit();
< if (OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)) == -1)
< stdout = -1;
---
> if ((chosen = OF_finddevice("/chosen")) > 0)
> if (OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)) == -1)
> stdout = -1;
>
> return (rv);
133a138
> #ifndef FDT
156a162
> #endif
231c237
< * Resursively search the node and its parent for the given property, working
---
> * Recursively search the node and its parent for the given property, working
317a324
> #ifndef FDT
430a438
> #endif