From: David Woodhouse <d...@amazon.co.uk> Signed-off-by: David Woodhouse <d...@amazon.co.uk> --- hw/hppa/machine.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index cf28cb9586..97d9b44c4f 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -272,10 +272,8 @@ static void machine_hppa_init(MachineState *machine) qdev_get_gpio_in(lasi_dev, LASI_IRQ_LAN_HPA)); } - for (i = 0; i < nb_nics; i++) { - if (!enable_lasi_lan()) { - pci_nic_init_nofail(&nd_table[i], pci_bus, mc->default_nic, NULL); - } + if (!enable_lasi_lan()) { + pci_init_nic_devices(pci_bus, mc->default_nic); } /* PS/2 Keyboard/Mouse */ -- 2.40.1