diff options
-rw-r--r-- | device_tree.c | 4 | ||||
-rw-r--r-- | include/sysemu/device_tree.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/device_tree.c b/device_tree.c index ec8e776476..ca83504819 100644 --- a/device_tree.c +++ b/device_tree.c @@ -132,11 +132,11 @@ static int findnode_nofail(void *fdt, const char *node_path) } int qemu_fdt_setprop(void *fdt, const char *node_path, - const char *property, const void *val_array, int size) + const char *property, const void *val, int size) { int r; - r = fdt_setprop(fdt, findnode_nofail(fdt, node_path), property, val_array, size); + r = fdt_setprop(fdt, findnode_nofail(fdt, node_path), property, val, size); if (r < 0) { fprintf(stderr, "%s: Couldn't set %s/%s: %s\n", __func__, node_path, property, fdt_strerror(r)); diff --git a/include/sysemu/device_tree.h b/include/sysemu/device_tree.h index 68da97a3b4..899f05c138 100644 --- a/include/sysemu/device_tree.h +++ b/include/sysemu/device_tree.h @@ -18,7 +18,7 @@ void *create_device_tree(int *sizep); void *load_device_tree(const char *filename_path, int *sizep); int qemu_fdt_setprop(void *fdt, const char *node_path, - const char *property, const void *val_array, int size); + const char *property, const void *val, int size); int qemu_fdt_setprop_cell(void *fdt, const char *node_path, const char *property, uint32_t val); int qemu_fdt_setprop_u64(void *fdt, const char *node_path, |