mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw/net/smc91c111: use qemu_configure_nic_device()
Some callers instantiate the device unconditionally, others will do so only if there is a NICInfo to go with it. This appears to be fairly random, but preserve the existing behaviour of each caller for now. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
8cef839c2d
commit
cd53991de4
7 changed files with 22 additions and 37 deletions
|
@ -152,8 +152,7 @@ static void mainstone_common_init(MachineState *machine,
|
|||
qdev_get_gpio_in(mst_irq, S1_IRQ),
|
||||
qdev_get_gpio_in(mst_irq, S1_CD_IRQ));
|
||||
|
||||
smc91c111_init(&nd_table[0], MST_ETH_PHYS,
|
||||
qdev_get_gpio_in(mst_irq, ETHERNET_IRQ));
|
||||
smc91c111_init(MST_ETH_PHYS, qdev_get_gpio_in(mst_irq, ETHERNET_IRQ));
|
||||
|
||||
mainstone_binfo.board_id = arm_id;
|
||||
arm_load_kernel(mpu->cpu, machine, &mainstone_binfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue