[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 14/46] hw/mips/loongson3_virt: use pci_init_nic_devices()
From: |
David Woodhouse |
Subject: |
[PATCH v3 14/46] hw/mips/loongson3_virt: use pci_init_nic_devices() |
Date: |
Mon, 8 Jan 2024 20:26:43 +0000 |
From: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
---
hw/mips/loongson3_virt.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/mips/loongson3_virt.c b/hw/mips/loongson3_virt.c
index 33eae01eca..caedde2df0 100644
--- a/hw/mips/loongson3_virt.c
+++ b/hw/mips/loongson3_virt.c
@@ -451,9 +451,7 @@ static inline void loongson3_virt_devices_init(MachineState
*machine,
usb_create_simple(usb_bus_find(-1), "usb-tablet");
}
- 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);
}
static void mips_loongson3_virt_init(MachineState *machine)
--
2.41.0
- Re: [PATCH v3 02/46] net: report list of available models according to platform, (continued)
- [PATCH v3 32/46] hw/m68k/mcf5208: use qemu_create_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 29/46] hw/arm/stellaris: use qemu_find_nic_info(), David Woodhouse, 2024/01/08
- [PATCH v3 07/46] hw/alpha/dp264: use pci_init_nic_devices(), David Woodhouse, 2024/01/08
- [PATCH v3 36/46] hw/mips/jazz: use qemu_find_nic_info(), David Woodhouse, 2024/01/08
- [PATCH v3 22/46] hw/arm/aspeed: use qemu_configure_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 23/46] hw/arm/exynos4: use qemu_create_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 21/46] hw/arm/allwinner: use qemu_configure_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 14/46] hw/mips/loongson3_virt: use pci_init_nic_devices(),
David Woodhouse <=
- [PATCH v3 39/46] hw/riscv: use qemu_configure_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 20/46] hw/xtensa/virt: use pci_init_nic_devices(), David Woodhouse, 2024/01/08
- [PATCH v3 38/46] hw/openrisc/openrisc_sim: use qemu_create_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 18/46] hw/sh4/r2d: use pci_init_nic_devices(), David Woodhouse, 2024/01/08
- [PATCH v3 10/46] hw/hppa: use pci_init_nic_devices(), David Woodhouse, 2024/01/08
- [PATCH v3 42/46] hw/xtensa/xtfpga: use qemu_create_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 13/46] hw/mips/malta: use pci_init_nic_devices(), David Woodhouse, 2024/01/08
- [PATCH v3 03/46] net: add qemu_create_nic_bus_devices(), David Woodhouse, 2024/01/08