diff options
author | Bernhard Beschow <shentey@gmail.com> | 2022-06-03 20:50:41 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-06-11 11:44:50 +0200 |
commit | e8ebf54936fcaa0da1ccd60f2c20df93f5aa68d1 (patch) | |
tree | 432d54d06f686f3f69414166e15a58a5fb6ed455 /hw/isa | |
parent | 19e375db22461b255d32704ad289508e0f1d9947 (diff) | |
download | qemu-e8ebf54936fcaa0da1ccd60f2c20df93f5aa68d1.zip qemu-e8ebf54936fcaa0da1ccd60f2c20df93f5aa68d1.tar.gz qemu-e8ebf54936fcaa0da1ccd60f2c20df93f5aa68d1.tar.bz2 |
hw/isa/piix4: Inline and remove piix4_create()
During the previous changesets piix4_create() became a trivial
wrapper around more generic functions. Modernize the code.
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>
Message-Id: <20220603185045.143789-8-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/isa')
-rw-r--r-- | hw/isa/piix4.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index d97b245..15f344d 100644 --- a/hw/isa/piix4.c +++ b/hw/isa/piix4.c @@ -323,16 +323,3 @@ static void piix4_register_types(void) } type_init(piix4_register_types) - -DeviceState *piix4_create(PCIBus *pci_bus) -{ - PCIDevice *pci; - DeviceState *dev; - int devfn = PCI_DEVFN(10, 0); - - pci = pci_create_simple_multifunction(pci_bus, devfn, true, - TYPE_PIIX4_PCI_DEVICE); - dev = DEVICE(pci); - - return dev; -} |