aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/extres/syscon/syscon.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/extres/syscon/syscon.c')
-rw-r--r--sys/dev/extres/syscon/syscon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/extres/syscon/syscon.c b/sys/dev/extres/syscon/syscon.c
index c728f8435c13..3d69efca0b13 100644
--- a/sys/dev/extres/syscon/syscon.c
+++ b/sys/dev/extres/syscon/syscon.c
@@ -236,7 +236,7 @@ syscon_get_by_ofw_property(device_t cdev, phandle_t cnode, char *name,
"%s called on not ofw based device\n", __func__);
return (ENXIO);
}
- ncells = OF_getencprop_alloc(cnode, name, sizeof(pcell_t),
+ ncells = OF_getencprop_alloc_multi(cnode, name, sizeof(pcell_t),
(void **)&cells);
if (ncells < 1)
return (ENXIO);