mirror of
https://github.com/qemu/qemu.git
synced 2025-08-18 00:13:15 +00:00
hw: Reuse TYPE_I8042 define
TYPE_I8042 is exported, so reuse it for consistency. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-Id: <20220520180109.8224-2-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
5b21b331be
commit
aa2e535c82
@ -1097,7 +1097,7 @@ static void pc_superio_init(ISABus *isa_bus, bool create_fdctrl,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
i8042 = isa_create_simple(isa_bus, "i8042");
|
i8042 = isa_create_simple(isa_bus, TYPE_I8042);
|
||||||
if (!no_vmport) {
|
if (!no_vmport) {
|
||||||
isa_create_simple(isa_bus, TYPE_VMPORT);
|
isa_create_simple(isa_bus, TYPE_VMPORT);
|
||||||
vmmouse = isa_try_new("vmmouse");
|
vmmouse = isa_try_new("vmmouse");
|
||||||
@ -1105,7 +1105,7 @@ static void pc_superio_init(ISABus *isa_bus, bool create_fdctrl,
|
|||||||
vmmouse = NULL;
|
vmmouse = NULL;
|
||||||
}
|
}
|
||||||
if (vmmouse) {
|
if (vmmouse) {
|
||||||
object_property_set_link(OBJECT(vmmouse), "i8042", OBJECT(i8042),
|
object_property_set_link(OBJECT(vmmouse), TYPE_I8042, OBJECT(i8042),
|
||||||
&error_abort);
|
&error_abort);
|
||||||
isa_realize_and_unref(vmmouse, isa_bus, &error_fatal);
|
isa_realize_and_unref(vmmouse, isa_bus, &error_fatal);
|
||||||
}
|
}
|
||||||
|
@ -334,7 +334,7 @@ static void ebus_realize(PCIDevice *pci_dev, Error **errp)
|
|||||||
parallel_hds_isa_init(s->isa_bus, MAX_PARALLEL_PORTS);
|
parallel_hds_isa_init(s->isa_bus, MAX_PARALLEL_PORTS);
|
||||||
|
|
||||||
/* Keyboard */
|
/* Keyboard */
|
||||||
isa_create_simple(s->isa_bus, "i8042");
|
isa_create_simple(s->isa_bus, TYPE_I8042);
|
||||||
|
|
||||||
/* Floppy */
|
/* Floppy */
|
||||||
for (i = 0; i < MAX_FD; i++) {
|
for (i = 0; i < MAX_FD; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user