aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ntb/ntb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ntb/ntb.c')
-rw-r--r--sys/dev/ntb/ntb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ntb/ntb.c b/sys/dev/ntb/ntb.c
index 38def5be0bb1..53d9b47a9114 100644
--- a/sys/dev/ntb/ntb.c
+++ b/sys/dev/ntb/ntb.c
@@ -107,7 +107,7 @@ ntb_register_device(device_t dev)
nc->dbcnt = db;
nc->dbmask = (db == 0) ? 0 : (0xffffffffffffffff >> (64 - db));
rm_init(&nc->ctx_lock, "ntb ctx");
- nc->dev = device_add_child(dev, name, -1);
+ nc->dev = device_add_child(dev, name, DEVICE_UNIT_ANY);
if (nc->dev == NULL) {
ntb_unregister_device(dev);
return (ENOMEM);
@@ -142,7 +142,7 @@ ntb_register_device(device_t dev)
i++;
}
- bus_generic_attach(dev);
+ bus_attach_children(dev);
return (0);
}