Skip to content

Commit

Permalink
hw/hppa: 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: Thomas Huth <thuth@redhat.com>
  • Loading branch information
dwmw2 committed Feb 1, 2024
1 parent d8728c3 commit b7e3637
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions hw/hppa/machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus,
uint64_t kernel_entry = 0, kernel_low, kernel_high;
MemoryRegion *addr_space = get_system_memory();
MemoryRegion *rom_region;
long i;
unsigned int smp_cpus = machine->smp.cpus;
SysBusDevice *s;

Expand All @@ -368,10 +367,8 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus,
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);
}

/* BMC board: HP Powerbar SP2 Diva (with console only) */
Expand Down

0 comments on commit b7e3637

Please sign in to comment.