aboutsummaryrefslogtreecommitdiffstats
path: root/tests/subnode_iterate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/subnode_iterate.c')
-rw-r--r--tests/subnode_iterate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/subnode_iterate.c b/tests/subnode_iterate.c
index 0fb5c901ebd7..7be5706eeb30 100644
--- a/tests/subnode_iterate.c
+++ b/tests/subnode_iterate.c
@@ -33,7 +33,7 @@
static void test_node(void *fdt, int parent_offset)
{
- fdt32_t subnodes;
+ uint32_t subnodes;
const fdt32_t *prop;
int offset;
int count;
@@ -45,7 +45,7 @@ static void test_node(void *fdt, int parent_offset)
FAIL("Missing/invalid subnodes property at '%s'",
fdt_get_name(fdt, parent_offset, NULL));
}
- subnodes = cpu_to_fdt32(*prop);
+ subnodes = fdt32_to_cpu(*prop);
count = 0;
fdt_for_each_subnode(offset, fdt, parent_offset)