mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
hw/display: Allow vga_common_init() to return errors
The vga_common_init() function currently cannot report errors to its caller. But in the following patch, we'd need this possibility, so let's change it to take an "Error **" as parameter for this. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220317083027.16688-3-thuth@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
5f2011be44
commit
6832deb8ff
11 changed files with 42 additions and 13 deletions
|
@ -62,7 +62,10 @@ static void vga_isa_realizefn(DeviceState *dev, Error **errp)
|
|||
const MemoryRegionPortio *vga_ports, *vbe_ports;
|
||||
|
||||
s->global_vmstate = true;
|
||||
vga_common_init(s, OBJECT(dev));
|
||||
if (!vga_common_init(s, OBJECT(dev), errp)) {
|
||||
return;
|
||||
}
|
||||
|
||||
s->legacy_address_space = isa_address_space(isadev);
|
||||
vga_io_memory = vga_init_io(s, OBJECT(dev), &vga_ports, &vbe_ports);
|
||||
isa_register_portio_list(isadev, &d->portio_vga,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue