hw: Use pci_bus_add_fw_cfg_extra_pci_roots()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 6 Dec 2024 16:14:19 +0000 (17:14 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Dec 2024 23:16:20 +0000 (00:16 +0100)
commite5fd678a0d2489baa9af0c91408b93474836afcf
treed94905fc07a262aaafaa56a13a38b78b290735e5
parent14f1f86d5111ed2dae19ae15da81a98ea048017d
hw: Use pci_bus_add_fw_cfg_extra_pci_roots()

We want to remove fw_cfg_add_extra_pci_roots() which introduced
PCI bus knowledge within the generic hw/nvram/fw_cfg.c file.
Replace the calls by the pci_bus_add_fw_cfg_extra_pci_roots()
which is a 1:1 equivalent, but using correct API.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20241206181352.6836-6-philmd@linaro.org>
hw/arm/virt.c
hw/hppa/machine.c
hw/i386/pc.c