diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-10-23 14:04:09 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-10-23 14:04:09 +0000 |
commit | b654c9fc92fa68344d8b7ffdf70b1146bdd8a5d4 (patch) | |
tree | fe447c4bdc8db98bd887300c21d1c9e18f1a97b7 /sys/dev/fdt/fdt_common.c | |
parent | 9a7fe80e18a50ce12c6a8fe4992f6cdedee57069 (diff) | |
download | FreeBSD-src-b654c9fc92fa68344d8b7ffdf70b1146bdd8a5d4.zip FreeBSD-src-b654c9fc92fa68344d8b7ffdf70b1146bdd8a5d4.tar.gz |
Remove OF_instance_to_package() hack for FDT and replace with use of the
generic OF_xref_phandle() API universally. Also replace some related
explicit uses of fdt32_to_cpu() with OF_getencprop() calls.
Diffstat (limited to 'sys/dev/fdt/fdt_common.c')
-rw-r--r-- | sys/dev/fdt/fdt_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/fdt_common.c b/sys/dev/fdt/fdt_common.c index 740ccb5..d6401d2 100644 --- a/sys/dev/fdt/fdt_common.c +++ b/sys/dev/fdt/fdt_common.c @@ -523,7 +523,7 @@ fdt_intr_to_rl(phandle_t node, struct resource_list *rl, /* * Find #interrupt-cells of the interrupt domain. */ - if (OF_getprop(node, "interrupt-parent", &iph, sizeof(iph)) <= 0) { + if (OF_getencprop(node, "interrupt-parent", &iph, sizeof(iph)) <= 0) { debugf("no intr-parent phandle\n"); intr_par = OF_parent(node); } else { @@ -583,7 +583,7 @@ fdt_get_phyaddr(phandle_t node, device_t dev, int *phy_addr, void **phy_sc) uint32_t i; device_t parent, child; - if (OF_getprop(node, "phy-handle", (void *)&phy_handle, + if (OF_getencprop(node, "phy-handle", (void *)&phy_handle, sizeof(phy_handle)) <= 0) return (ENXIO); |