From a05a680469a7ac77b195021fed74e3aa58152dd7 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 24 Jul 2024 22:23:02 -0600 Subject: newbus: replace -1 in BUS_ADD_CHILD(...-1) with DEVICE_UNIT_ANY Sponsored by: Netflix --- sys/dev/firewire/firewire.c | 2 +- sys/dev/firewire/sbp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/firewire') diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index 4bb683cccfb7..93a414405c17 100644 --- a/sys/dev/firewire/firewire.c +++ b/sys/dev/firewire/firewire.c @@ -314,7 +314,7 @@ fw_asystart(struct fw_xfer *xfer) static void firewire_identify(driver_t *driver, device_t parent) { - BUS_ADD_CHILD(parent, 0, "firewire", -1); + BUS_ADD_CHILD(parent, 0, "firewire", DEVICE_UNIT_ANY); } static int diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c index 5f4ebb747057..2a91f6987e69 100644 --- a/sys/dev/firewire/sbp.c +++ b/sys/dev/firewire/sbp.c @@ -304,7 +304,7 @@ SBP_DEBUG(0) END_DEBUG if (device_find_child(parent, "sbp", -1) == NULL) - BUS_ADD_CHILD(parent, 0, "sbp", -1); + BUS_ADD_CHILD(parent, 0, "sbp", DEVICE_UNIT_ANY); } /* -- cgit v1.3