summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-05-24 18:00:29 +0000
committerian <ian@FreeBSD.org>2015-05-24 18:00:29 +0000
commit6bbf63ab358eb20bca48b212cd16b935c1571d74 (patch)
treefe157be0825a5a473a3279495d758f3d12d97fef /sys
parentad1acff25227d57348f2144ab2a2834110d7a7a9 (diff)
downloadFreeBSD-src-6bbf63ab358eb20bca48b212cd16b935c1571d74.zip
FreeBSD-src-6bbf63ab358eb20bca48b212cd16b935c1571d74.tar.gz
MFC r281371: Use OF_getencpropalloc() to handle endianess of the properties.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdt/fdt_pinctrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdt/fdt_pinctrl.c b/sys/dev/fdt/fdt_pinctrl.c
index 0a0dd84..b4d33c9 100644
--- a/sys/dev/fdt/fdt_pinctrl.c
+++ b/sys/dev/fdt/fdt_pinctrl.c
@@ -46,7 +46,7 @@ fdt_pinctrl_configure(device_t client, u_int index)
char name[16];
snprintf(name, sizeof(name), "pinctrl-%u", index);
- nconfigs = OF_getprop_alloc(ofw_bus_get_node(client), name,
+ nconfigs = OF_getencprop_alloc(ofw_bus_get_node(client), name,
sizeof(*configs), (void **)&configs);
if (nconfigs < 0)
return (ENOENT);
@@ -122,12 +122,12 @@ pinctrl_configure_children(device_t pinctrl, phandle_t parent)
if (!fdt_is_enabled(node))
continue;
pinctrl_configure_children(pinctrl, node);
- nconfigs = OF_getencprop_alloc(node, "pinctrl-0",
+ nconfigs = OF_getencprop_alloc(node, "pinctrl-0",
sizeof(*configs), (void **)&configs);
if (nconfigs <= 0)
continue;
if (bootverbose) {
- char name[32];
+ char name[32];
OF_getprop(node, "name", &name, sizeof(name));
printf("Processing %d pin-config node(s) in pinctrl-0 for %s\n",
nconfigs, name);
OpenPOWER on IntegriCloud