summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-10-26 01:30:46 +0000
committerian <ian@FreeBSD.org>2014-10-26 01:30:46 +0000
commit1c8cde378e7386ca86f33d4ce67b360782b6abec (patch)
treef847b5f519d4b7fc00e295ee9cb3686f2cec6de9 /sys/powerpc/powermac
parent520f9702ad1e3b22f76421e717bd01dd5c266bde (diff)
downloadFreeBSD-src-1c8cde378e7386ca86f33d4ce67b360782b6abec.zip
FreeBSD-src-1c8cde378e7386ca86f33d4ce67b360782b6abec.tar.gz
MFC r270945:
Rename OF_xref_phandle() to OF_node_from_xref() and add a new function that provides the inverse translation, OF_xref_from_node().
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