hw/i386/pc: Create 'vmport' device in place
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 4 May 2020 08:33:39 +0000 (10:33 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 4 May 2020 14:25:03 +0000 (10:25 -0400)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200504083342.24273-2-f4bug@amsat.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc.c
include/hw/i386/pc.h

index 5143c516531ec110dba10610c315a9bd147b47bd..84669ddc8498023d0180d1b57c8d47a9035bca9c 100644 (file)
@@ -1152,7 +1152,7 @@ static void pc_superio_init(ISABus *isa_bus, bool create_fdctrl, bool no_vmport)
 
     i8042 = isa_create_simple(isa_bus, "i8042");
     if (!no_vmport) {
-        vmport_init(isa_bus);
+        isa_create_simple(isa_bus, TYPE_VMPORT);
         vmmouse = isa_try_create(isa_bus, "vmmouse");
     } else {
         vmmouse = NULL;
index 6ab6eda046fd9816664fa1c241f4c8d412e532c9..26e2a3d92b212db96d1700a3c7f203dcd5578e0c 100644 (file)
@@ -132,12 +132,6 @@ GSIState *pc_gsi_create(qemu_irq **irqs, bool pci_enabled);
 /* vmport.c */
 #define TYPE_VMPORT "vmport"
 typedef uint32_t (VMPortReadFunc)(void *opaque, uint32_t address);
-
-static inline void vmport_init(ISABus *bus)
-{
-    isa_create_simple(bus, TYPE_VMPORT);
-}
-
 void vmport_register(unsigned char command, VMPortReadFunc *func, void *opaque);
 void vmmouse_get_data(uint32_t *data);
 void vmmouse_set_data(const uint32_t *data);