aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-12-13 11:50:58 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-12-17 19:33:51 +0100
commit9e5213c8be63cdc806d1739d48148cd5f1444526 (patch)
treec7da128d2ce489ae171a08a02a5398e566e8211c
parent3c29e188415e81c32a9107ecb2616fc6b967abc5 (diff)
downloadqemu-9e5213c8be63cdc806d1739d48148cd5f1444526.zip
qemu-9e5213c8be63cdc806d1739d48148cd5f1444526.tar.gz
qemu-9e5213c8be63cdc806d1739d48148cd5f1444526.tar.bz2
hw/i386/pc: Use TYPE_PORT92 instead of hardcoded string
By using the TYPE_* definitions for devices, we can: - quickly find where devices are used with 'git-grep' - easily rename a device (one-line change). Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--hw/i386/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index ea7320b..67fddcc 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1278,7 +1278,7 @@ static void pc_superio_init(ISABus *isa_bus, bool create_fdctrl, bool no_vmport)
qdev_prop_set_ptr(dev, "ps2_mouse", i8042);
qdev_init_nofail(dev);
}
- port92 = isa_create_simple(isa_bus, "port92");
+ port92 = isa_create_simple(isa_bus, TYPE_PORT92);
a20_line = qemu_allocate_irqs(handle_a20_line_change, first_cpu, 2);
i8042_setup_a20_line(i8042, a20_line[0]);