]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/pl011.c
savevm: Add DeviceState param
[mirror_qemu.git] / hw / pl011.c
index 81de91e4c46270ea1da6d98da9dd111cb9e85c22..02cf84aee190b668ff2e3ff4ddef0910747a730d 100644 (file)
@@ -306,7 +306,7 @@ static int pl011_init(SysBusDevice *dev, const unsigned char *id)
         qemu_chr_add_handlers(s->chr, pl011_can_receive, pl011_receive,
                               pl011_event, s);
     }
-    register_savevm("pl011_uart", -1, 1, pl011_save, pl011_load, s);
+    register_savevm(&dev->qdev, "pl011_uart", -1, 1, pl011_save, pl011_load, s);
     return 0;
 }