]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/i386/pc_sysfw.c
sysbus: Convert to sysbus_realize() etc. with Coccinelle
[mirror_qemu.git] / hw / i386 / pc_sysfw.c
index 2e414d193451478f328fbe28b5598fef8e2557b7..ec2a3b3e7eff2e6018b5a6134f3cc787351466a8 100644 (file)
@@ -187,7 +187,7 @@ static void pc_system_flash_map(PCMachineState *pcms,
         total_size += size;
         qdev_prop_set_uint32(DEVICE(system_flash), "num-blocks",
                              size / FLASH_SECTOR_SIZE);
-        qdev_realize_and_unref(DEVICE(system_flash), NULL, &error_fatal);
+        sysbus_realize_and_unref(SYS_BUS_DEVICE(system_flash), &error_fatal);
         sysbus_mmio_map(SYS_BUS_DEVICE(system_flash), 0,
                         0x100000000ULL - total_size);