]> git.proxmox.com Git - mirror_qemu.git/blobdiff - device_tree.c
Revert "audio: fix pc speaker init"
[mirror_qemu.git] / device_tree.c
index 6d9c9726f66c93c9faf50399d10fc7fa7d44dad9..296278e12ae01020e7c0b8564587a7fa4d2dcf16 100644 (file)
@@ -91,7 +91,7 @@ void *load_device_tree(const char *filename_path, int *sizep)
     /* First allocate space in qemu for device tree */
     fdt = g_malloc0(dt_size);
 
-    dt_file_load_size = load_image(filename_path, fdt);
+    dt_file_load_size = load_image_size(filename_path, fdt, dt_size);
     if (dt_file_load_size < 0) {
         error_report("Unable to open device tree file '%s'",
                      filename_path);