diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2013-12-01 19:05:32 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2013-12-01 19:05:32 +0000 |
commit | 02ef3f33de6e52a747f42a6f0c1ee67e1fbfd62d (patch) | |
tree | 3f4fa486b6a191d41fc9eac197730b06830a7f56 /sys/dev/uart | |
parent | fb5b9994b3f77fe3c8a64538a4b92b29da9d0582 (diff) | |
download | src-02ef3f33de6e52a747f42a6f0c1ee67e1fbfd62d.tar.gz src-02ef3f33de6e52a747f42a6f0c1ee67e1fbfd62d.zip |
Real OF systems have an ihandle under /chosen/stdout, not a phandle. Use
the right type.
Notes
Notes:
svn path=/head/; revision=258806
Diffstat (limited to 'sys/dev/uart')
-rw-r--r-- | sys/dev/uart/uart_cpu_powerpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/uart/uart_cpu_powerpc.c b/sys/dev/uart/uart_cpu_powerpc.c index 44f633895536..0791c7783bac 100644 --- a/sys/dev/uart/uart_cpu_powerpc.c +++ b/sys/dev/uart/uart_cpu_powerpc.c @@ -89,13 +89,13 @@ ofw_get_console_phandle_path(phandle_t node, phandle_t *result, return (ENXIO); OF_getprop(node, prop, &field, sizeof(field)); - /* This property might be a phandle or might be a path. Hooray. */ + /* This property might be either a ihandle or path. Hooray. */ output = -1; if (field.buf[size - 1] == 0) output = OF_finddevice(field.buf); if (output == -1 && size == 4) - output = OF_xref_phandle(field.ref); + output = OF_instance_to_package(field.ref); if (output != -1) { *result = output; |