summaryrefslogtreecommitdiffstats
path: root/sys/dev/snp
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-03-11 12:58:55 +0000
committerphk <phk@FreeBSD.org>2004-03-11 12:58:55 +0000
commitfdd216910ffbe9a4c619c30e436cc4494c4aa76d (patch)
treed80c1ed0f5ff7fc7c422007db569eb63e1395ee9 /sys/dev/snp
parent0016f83af98e16cda533c5adf275ca76c3ac2362 (diff)
downloadFreeBSD-src-fdd216910ffbe9a4c619c30e436cc4494c4aa76d.zip
FreeBSD-src-fdd216910ffbe9a4c619c30e436cc4494c4aa76d.tar.gz
Add clone_setup() function rather than rely on lazy initialization.
Requested by: rwatson
Diffstat (limited to 'sys/dev/snp')
-rw-r--r--sys/dev/snp/snp.c1
1 files changed, 1 insertions, 0 deletions
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