diff options
Diffstat (limited to 'sys/dev/vnic/thunder_mdio_fdt.c')
-rw-r--r-- | sys/dev/vnic/thunder_mdio_fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vnic/thunder_mdio_fdt.c b/sys/dev/vnic/thunder_mdio_fdt.c index eb0cc3c75c64..158c84cee440 100644 --- a/sys/dev/vnic/thunder_mdio_fdt.c +++ b/sys/dev/vnic/thunder_mdio_fdt.c @@ -269,7 +269,7 @@ mdionexus_ofw_bus_attach(device_t dev) ofw_bus_intr_to_rl(dev, node, &di->di_rl, NULL); /* Add newbus device for this FDT node */ - child = device_add_child(dev, NULL, -1); + child = device_add_child(dev, NULL, DEVICE_UNIT_ANY); if (child == NULL) { resource_list_free(&di->di_rl); ofw_bus_gen_destroy_devinfo(&di->di_dinfo); |