diff options
author | Marc-André Lureau | 2019-10-22 01:02:50 +0200 |
---|---|---|
committer | Marc-André Lureau | 2020-01-07 13:50:48 +0100 |
commit | c9808d602813bce4fada7bf9ecc463aa779b73f7 (patch) | |
tree | af4b95f690cbcd97139756bcf6e4146a8d7d24da /hw/char/serial-pci.c | |
parent | serial: add "baudbase" property (diff) | |
download | qemu-c9808d602813bce4fada7bf9ecc463aa779b73f7.tar.gz qemu-c9808d602813bce4fada7bf9ecc463aa779b73f7.tar.xz qemu-c9808d602813bce4fada7bf9ecc463aa779b73f7.zip |
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>
Diffstat (limited to 'hw/char/serial-pci.c')
-rw-r--r-- | hw/char/serial-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c index db2c17aafd..4b6a217365 100644 --- a/hw/char/serial-pci.c +++ b/hw/char/serial-pci.c @@ -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; |