summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-09-01 18:51:01 +0000
committerian <ian@FreeBSD.org>2014-09-01 18:51:01 +0000
commitb149a9e7aec5e222b7dba23fdebc5717058e1c33 (patch)
tree4154cc6d9c0d1aa962bd79ee696b5d2dba059f4e /sys/powerpc/powermac
parenteded564156e66164e3cf66ef4a9fec1bc8e78e34 (diff)
downloadFreeBSD-src-b149a9e7aec5e222b7dba23fdebc5717058e1c33.zip
FreeBSD-src-b149a9e7aec5e222b7dba23fdebc5717058e1c33.tar.gz
Rename OF_xref_phandle() to OF_node_from_xref() and add a new function
that provides the inverse translation, OF_xref_from_node(). Discussed with: nwhitehorn
Diffstat (limited to 'sys/powerpc/powermac')
-rw-r--r--sys/powerpc/powermac/macio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/powermac/macio.c b/sys/powerpc/powermac/macio.c
index 6a0b913..b495cb3 100644
--- a/sys/powerpc/powermac/macio.c
+++ b/sys/powerpc/powermac/macio.c
@@ -217,7 +217,7 @@ macio_add_intr(phandle_t devnode, struct macio_devinfo *dinfo)
<= 0)
panic("Interrupt but no interrupt parent!\n");
- if (OF_getprop(OF_xref_phandle(iparent), "#interrupt-cells", &icells,
+ if (OF_getprop(OF_node_from_xref(iparent), "#interrupt-cells", &icells,
sizeof(icells)) <= 0)
icells = 1;
OpenPOWER on IntegriCloud