summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/twe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c
index ed472224d1f..a10cbc03a8f 100644
--- a/sys/dev/ic/twe.c
+++ b/sys/dev/ic/twe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: twe.c,v 1.4 2000/11/07 20:15:53 mickey Exp $ */
+/* $OpenBSD: twe.c,v 1.5 2000/11/08 20:44:56 mickey Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff. All rights reserved.
@@ -367,6 +367,9 @@ twe_attach(sc)
sc->sc_hdr[i].hd_heads));
}
+ if (!nunits)
+ nunits++;
+
/* TODO: fetch & print cache params? */
sc->sc_link.adapter_softc = sc;