diff options
author | Warner Losh <imp@FreeBSD.org> | 2024-07-25 04:22:58 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2024-07-25 04:22:58 +0000 |
commit | 5b56413d04e608379c9a306373554a8e4d321bc0 (patch) | |
tree | c9151d7d1f89e0d4d84120695ab396078fef3ad5 /sys/dev/vnic/thunder_mdio_fdt.c | |
parent | 29d13f3d06dec06a2fc9636ca8308c0462f80cfc (diff) | |
download | src-5b56413d04e608379c9a306373554a8e4d321bc0.tar.gz src-5b56413d04e608379c9a306373554a8e4d321bc0.zip |
newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY
Sponsored by: Netflix
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); |