summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/nmdm/nmdm.c1
-rw-r--r--sys/dev/snp/snp.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/nmdm/nmdm.c b/sys/dev/nmdm/nmdm.c
index 22b9b51..841495f 100644
--- a/sys/dev/nmdm/nmdm.c
+++ b/sys/dev/nmdm/nmdm.c
@@ -594,6 +594,7 @@ nmdm_modevent(module_t mod, int type, void *data)
switch(type) {
case MOD_LOAD:
+ clone_setup(&nmdmclones);
tag = EVENTHANDLER_REGISTER(dev_clone, nmdm_clone, 0, 1000);
if (tag == NULL)
return (ENOMEM);
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c
index 19dc1e7..ebf888e 100644
--- a/sys/dev/snp/snp.c
+++ b/sys/dev/snp/snp.c
@@ -631,6 +631,7 @@ snp_modevent(mod, type, data)
switch (type) {
case MOD_LOAD:
/* XXX error checking. */
+ clone_setup(&snpclones);
eh_tag = EVENTHANDLER_REGISTER(dev_clone, snp_clone, 0, 1000);
snooplinedisc = ldisc_register(LDISC_LOAD, &snpdisc);
break;
OpenPOWER on IntegriCloud