Skip to content

Commit

Permalink
hw/arm/fsl: use qemu_configure_nic_device()
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 fb3b4c5 commit f600110
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hw/arm/fsl-imx25.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static void fsl_imx25_realize(DeviceState *dev, Error **errp)

object_property_set_uint(OBJECT(&s->fec), "phy-num", s->phy_num,
&error_abort);
qdev_set_nic_properties(DEVICE(&s->fec), &nd_table[0]);
qemu_configure_nic_device(DEVICE(&s->fec), true, NULL);

if (!sysbus_realize(SYS_BUS_DEVICE(&s->fec), errp)) {
return;
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/fsl-imx6.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp)

object_property_set_uint(OBJECT(&s->eth), "phy-num", s->phy_num,
&error_abort);
qdev_set_nic_properties(DEVICE(&s->eth), &nd_table[0]);
qemu_configure_nic_device(DEVICE(&s->eth), true, NULL);
if (!sysbus_realize(SYS_BUS_DEVICE(&s->eth), errp)) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/fsl-imx6ul.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp)
s->phy_num[i], &error_abort);
object_property_set_uint(OBJECT(&s->eth[i]), "tx-ring-num",
FSL_IMX6UL_ETH_NUM_TX_RINGS, &error_abort);
qdev_set_nic_properties(DEVICE(&s->eth[i]), &nd_table[i]);
qemu_configure_nic_device(DEVICE(&s->eth[i]), true, NULL);
sysbus_realize(SYS_BUS_DEVICE(&s->eth[i]), &error_abort);

sysbus_mmio_map(SYS_BUS_DEVICE(&s->eth[i]), 0,
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/fsl-imx7.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp)
s->phy_num[i], &error_abort);
object_property_set_uint(OBJECT(&s->eth[i]), "tx-ring-num",
FSL_IMX7_ETH_NUM_TX_RINGS, &error_abort);
qdev_set_nic_properties(DEVICE(&s->eth[i]), &nd_table[i]);
qemu_configure_nic_device(DEVICE(&s->eth[i]), true, NULL);
sysbus_realize(SYS_BUS_DEVICE(&s->eth[i]), &error_abort);

sysbus_mmio_map(SYS_BUS_DEVICE(&s->eth[i]), 0, FSL_IMX7_ENETn_ADDR[i]);
Expand Down

0 comments on commit f600110

Please sign in to comment.