mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -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
|
@ -49,7 +49,7 @@ static void serial_pci_realize(PCIDevice *dev, Error **errp)
|
|||
SerialState *s = &pci->state;
|
||||
Error *err = NULL;
|
||||
|
||||
serial_realize_core(s, &err);
|
||||
object_property_set_bool(OBJECT(s), true, "realized", &err);
|
||||
if (err != NULL) {
|
||||
error_propagate(errp, err);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue