diff options
Diffstat (limited to 'sys/dev/etherswitch/etherswitch.c')
-rw-r--r-- | sys/dev/etherswitch/etherswitch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/etherswitch/etherswitch.c b/sys/dev/etherswitch/etherswitch.c index 74afcd259007..ba46d8b2299d 100644 --- a/sys/dev/etherswitch/etherswitch.c +++ b/sys/dev/etherswitch/etherswitch.c @@ -82,8 +82,8 @@ static struct cdevsw etherswitch_cdevsw = { 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); + if (device_find_child(parent, "etherswitch", DEVICE_UNIT_ANY) == NULL) + BUS_ADD_CHILD(parent, 0, "etherswitch", DEVICE_UNIT_ANY); } static int |