aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/uart
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-12-01 19:05:32 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-12-01 19:05:32 +0000
commit02ef3f33de6e52a747f42a6f0c1ee67e1fbfd62d (patch)
tree3f4fa486b6a191d41fc9eac197730b06830a7f56 /sys/dev/uart
parentfb5b9994b3f77fe3c8a64538a4b92b29da9d0582 (diff)
downloadsrc-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.c4
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;