diff options
| author | Warner Losh <imp@FreeBSD.org> | 2024-07-25 04:23:02 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2024-07-25 04:23:02 +0000 |
| commit | a05a680469a7ac77b195021fed74e3aa58152dd7 (patch) | |
| tree | 430d769aa20aeb2fdc9b31e2cb4b7c527bb2e172 /sys/dev/etherswitch | |
| parent | 5b56413d04e608379c9a306373554a8e4d321bc0 (diff) | |
Diffstat (limited to 'sys/dev/etherswitch')
| -rw-r--r-- | sys/dev/etherswitch/e6000sw/e6000sw.c | 2 | ||||
| -rw-r--r-- | sys/dev/etherswitch/etherswitch.c | 2 | ||||
| -rw-r--r-- | sys/dev/etherswitch/ip17x/ip17x.c | 2 | ||||
| -rw-r--r-- | sys/dev/etherswitch/miiproxy.c | 2 | ||||
| -rw-r--r-- | sys/dev/etherswitch/rtl8366/rtl8366rb.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c index 3b309f7f36f8..4e95287399e3 100644 --- a/sys/dev/etherswitch/e6000sw/e6000sw.c +++ b/sys/dev/etherswitch/e6000sw/e6000sw.c @@ -205,7 +205,7 @@ e6000sw_identify(driver_t *driver, device_t parent) { if (device_find_child(parent, "e6000sw", -1) == NULL) - BUS_ADD_CHILD(parent, 0, "e6000sw", -1); + BUS_ADD_CHILD(parent, 0, "e6000sw", DEVICE_UNIT_ANY); } static int diff --git a/sys/dev/etherswitch/etherswitch.c b/sys/dev/etherswitch/etherswitch.c index 74afcd259007..c66918f77174 100644 --- a/sys/dev/etherswitch/etherswitch.c +++ b/sys/dev/etherswitch/etherswitch.c @@ -83,7 +83,7 @@ static void etherswitch_identify(driver_t *driver, device_t parent) { if (device_find_child(parent, "etherswitch", -1) == NULL) - BUS_ADD_CHILD(parent, 0, "etherswitch", -1); + BUS_ADD_CHILD(parent, 0, "etherswitch", DEVICE_UNIT_ANY); } static int diff --git a/sys/dev/etherswitch/ip17x/ip17x.c b/sys/dev/etherswitch/ip17x/ip17x.c index 5e07e1f72b80..349dc59e09ae 100644 --- a/sys/dev/etherswitch/ip17x/ip17x.c +++ b/sys/dev/etherswitch/ip17x/ip17x.c @@ -84,7 +84,7 @@ static void ip17x_identify(driver_t *driver, device_t parent) { if (device_find_child(parent, "ip17x", -1) == NULL) - BUS_ADD_CHILD(parent, 0, "ip17x", -1); + BUS_ADD_CHILD(parent, 0, "ip17x", DEVICE_UNIT_ANY); } static int diff --git a/sys/dev/etherswitch/miiproxy.c b/sys/dev/etherswitch/miiproxy.c index 24822b15f89e..3a621eae0875 100644 --- a/sys/dev/etherswitch/miiproxy.c +++ b/sys/dev/etherswitch/miiproxy.c @@ -331,7 +331,7 @@ static void mdioproxy_identify(driver_t *driver, device_t parent) { if (device_find_child(parent, driver->name, -1) == NULL) { - BUS_ADD_CHILD(parent, 0, driver->name, -1); + BUS_ADD_CHILD(parent, 0, driver->name, DEVICE_UNIT_ANY); } } diff --git a/sys/dev/etherswitch/rtl8366/rtl8366rb.c b/sys/dev/etherswitch/rtl8366/rtl8366rb.c index 761a96b0ec80..e57b11f3270f 100644 --- a/sys/dev/etherswitch/rtl8366/rtl8366rb.c +++ b/sys/dev/etherswitch/rtl8366/rtl8366rb.c @@ -134,7 +134,7 @@ rtl8366rb_identify(driver_t *driver, device_t parent) struct iicbus_ivar *devi; if (device_find_child(parent, "rtl8366rb", -1) == NULL) { - child = BUS_ADD_CHILD(parent, 0, "rtl8366rb", -1); + child = BUS_ADD_CHILD(parent, 0, "rtl8366rb", DEVICE_UNIT_ANY); devi = IICBUS_IVAR(child); devi->addr = RTL8366_IIC_ADDR; } |
