Date: Sun, 1 Dec 2013 19:05:33 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258806 - head/sys/dev/uart Message-ID: <201312011905.rB1J5XwN065738@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Sun Dec 1 19:05:32 2013 New Revision: 258806 URL: http://svnweb.freebsd.org/changeset/base/258806 Log: Real OF systems have an ihandle under /chosen/stdout, not a phandle. Use the right type. Modified: head/sys/dev/uart/uart_cpu_powerpc.c Modified: head/sys/dev/uart/uart_cpu_powerpc.c ============================================================================== --- head/sys/dev/uart/uart_cpu_powerpc.c Sun Dec 1 19:03:20 2013 (r258805) +++ head/sys/dev/uart/uart_cpu_powerpc.c Sun Dec 1 19:05:32 2013 (r258806) @@ -89,13 +89,13 @@ ofw_get_console_phandle_path(phandle_t n 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312011905.rB1J5XwN065738>