diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-10-22 01:14:43 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-07 16:50:48 +0400 |
commit | b9975000a008c5b0801e3d24ed113a1bd2767ed5 (patch) | |
tree | d2b17e8a550c5de7ebd0cb018a77410e4ebd4493 /hw/char/serial-pci-multi.c | |
parent | c9808d602813bce4fada7bf9ecc463aa779b73f7 (diff) | |
download | qemu-b9975000a008c5b0801e3d24ed113a1bd2767ed5.zip qemu-b9975000a008c5b0801e3d24ed113a1bd2767ed5.tar.gz qemu-b9975000a008c5b0801e3d24ed113a1bd2767ed5.tar.bz2 |
serial: replace serial_exit_core() with unrealize
Instead of calling serial_exit_core() directly, use the QDev unrealize
callback.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/char/serial-pci-multi.c')
-rw-r--r-- | hw/char/serial-pci-multi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/serial-pci-multi.c b/hw/char/serial-pci-multi.c index 0e1fdb7..e343a12 100644 --- a/hw/char/serial-pci-multi.c +++ b/hw/char/serial-pci-multi.c @@ -56,7 +56,7 @@ static void multi_serial_pci_exit(PCIDevice *dev) for (i = 0; i < pci->ports; i++) { s = pci->state + i; - serial_exit_core(s); + object_property_set_bool(OBJECT(s), false, "realized", NULL); memory_region_del_subregion(&pci->iobar, &s->io); g_free(pci->name[i]); } |