mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
c9808d6028
commit
b9975000a0
4 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue