mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
isa: Convert uses of isa_create(), isa_try_create() manually
Same transformation as in the previous commit. Manual, because convincing Coccinelle to transform these cases is not worthwhile. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-21-armbru@redhat.com>
This commit is contained in:
parent
96927c744f
commit
c23e05614e
4 changed files with 11 additions and 11 deletions
|
@ -1158,14 +1158,14 @@ static void pc_superio_init(ISABus *isa_bus, bool create_fdctrl, bool no_vmport)
|
|||
i8042 = isa_create_simple(isa_bus, "i8042");
|
||||
if (!no_vmport) {
|
||||
isa_create_simple(isa_bus, TYPE_VMPORT);
|
||||
vmmouse = isa_try_create(isa_bus, "vmmouse");
|
||||
vmmouse = isa_try_new("vmmouse");
|
||||
} else {
|
||||
vmmouse = NULL;
|
||||
}
|
||||
if (vmmouse) {
|
||||
object_property_set_link(OBJECT(vmmouse), OBJECT(i8042),
|
||||
"i8042", &error_abort);
|
||||
qdev_init_nofail(DEVICE(vmmouse));
|
||||
isa_realize_and_unref(vmmouse, isa_bus, &error_fatal);
|
||||
}
|
||||
port92 = isa_create_simple(isa_bus, TYPE_PORT92);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue