hw/arm/sbsa-ref: use pci_init_nic_devices()

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
This commit is contained in:
David Woodhouse 2023-10-20 11:45:58 +01:00
parent 861bbc8812
commit 0e45d0eb23

View File

@ -673,9 +673,7 @@ static void create_pcie(SBSAMachineState *sms)
pci = PCI_HOST_BRIDGE(dev); pci = PCI_HOST_BRIDGE(dev);
if (pci->bus) { if (pci->bus) {
for (i = 0; i < nb_nics; i++) { pci_init_nic_devices(pci->bus, mc->default_nic);
pci_nic_init_nofail(&nd_table[i], pci->bus, mc->default_nic, NULL);
}
} }
pci_create_simple(pci->bus, -1, "bochs-display"); pci_create_simple(pci->bus, -1, "bochs-display");