Skip to content

Commit

Permalink
hw/arm/sbsa-ref: use pci_init_nic_devices()
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
  • Loading branch information
dwmw2 committed Feb 1, 2024
1 parent 002c2c4 commit 6c5c526
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hw/arm/sbsa-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,7 @@ static void create_pcie(SBSAMachineState *sms)

pci = PCI_HOST_BRIDGE(dev);
if (pci->bus) {
for (i = 0; i < nb_nics; i++) {
pci_nic_init_nofail(&nd_table[i], pci->bus, mc->default_nic, NULL);
}
pci_init_nic_devices(pci->bus, mc->default_nic);
}

pci_create_simple(pci->bus, -1, "bochs-display");
Expand Down

0 comments on commit 6c5c526

Please sign in to comment.