mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23: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
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue