diff options
Diffstat (limited to 'sys/dev/etherswitch/etherswitch.c')
| -rw-r--r-- | sys/dev/etherswitch/etherswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/etherswitch/etherswitch.c b/sys/dev/etherswitch/etherswitch.c index c66918f77174..ba46d8b2299d 100644 --- a/sys/dev/etherswitch/etherswitch.c +++ b/sys/dev/etherswitch/etherswitch.c @@ -82,7 +82,7 @@ static struct cdevsw etherswitch_cdevsw = { static void etherswitch_identify(driver_t *driver, device_t parent) { - if (device_find_child(parent, "etherswitch", -1) == NULL) + if (device_find_child(parent, "etherswitch", DEVICE_UNIT_ANY) == NULL) BUS_ADD_CHILD(parent, 0, "etherswitch", DEVICE_UNIT_ANY); } |
