summaryrefslogtreecommitdiffstats
path: root/hw/char/serial-pci.c
diff options
context:
space:
mode:
authorMarc-André Lureau2019-10-22 01:14:43 +0200
committerMarc-André Lureau2020-01-07 13:50:48 +0100
commitb9975000a008c5b0801e3d24ed113a1bd2767ed5 (patch)
treed2b17e8a550c5de7ebd0cb018a77410e4ebd4493 /hw/char/serial-pci.c
parentserial: realize the serial device (diff)
downloadqemu-b9975000a008c5b0801e3d24ed113a1bd2767ed5.tar.gz
qemu-b9975000a008c5b0801e3d24ed113a1bd2767ed5.tar.xz
qemu-b9975000a008c5b0801e3d24ed113a1bd2767ed5.zip
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.c')
-rw-r--r--hw/char/serial-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c
index 4b6a217365..b6a73c65a9 100644
--- a/hw/char/serial-pci.c
+++ b/hw/char/serial-pci.c
@@ -68,7 +68,7 @@ static void serial_pci_exit(PCIDevice *dev)
PCISerialState *pci = DO_UPCAST(PCISerialState, dev, dev);
SerialState *s = &pci->state;
- serial_exit_core(s);
+ object_property_set_bool(OBJECT(s), false, "realized", NULL);
qemu_free_irq(s->irq);
}