summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2010-05-21 20:52:38 +0000
committermarco <marco@openbsd.org>2010-05-21 20:52:38 +0000
commit16858867a6cc2b6833d8c6930ae739f6fa559084 (patch)
tree39700245603df961a07a2be9c2da2133605b629e /sys/dev/softraid.c
parentsync (diff)
downloadwireguard-openbsd-16858867a6cc2b6833d8c6930ae739f6fa559084.tar.xz
wireguard-openbsd-16858867a6cc2b6833d8c6930ae739f6fa559084.zip
Make compile with NBIO = 0
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index c56301894a8..94b2f427d14 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.203 2010/05/20 00:55:17 krw Exp $ */
+/* $OpenBSD: softraid.c,v 1.204 2010/05/21 20:52:38 marco Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -1549,10 +1549,12 @@ sr_attach(struct device *parent, struct device *self, void *aux)
SLIST_INIT(&sr_hotplug_callbacks);
SLIST_INIT(&sc->sc_hotspare_list);
+#if NBIO > 0
if (bio_register(&sc->sc_dev, sr_ioctl) != 0)
printf("%s: controller registration failed", DEVNAME(sc));
else
sc->sc_ioctl = sr_ioctl;
+#endif /* NBIO > 0 */
printf("\n");