mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
serial: realize the serial device
Instead of calling serial_realize_core(), use the QDev realize callback. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
96651db423
commit
c9808d6028
5 changed files with 7 additions and 8 deletions
|
@ -106,7 +106,7 @@ static void multi_serial_pci_realize(PCIDevice *dev, Error **errp)
|
|||
|
||||
for (i = 0; i < nports; i++) {
|
||||
s = pci->state + i;
|
||||
serial_realize_core(s, &err);
|
||||
object_property_set_bool(OBJECT(s), true, "realized", &err);
|
||||
if (err != NULL) {
|
||||
error_propagate(errp, err);
|
||||
multi_serial_pci_exit(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue