diff options
Diffstat (limited to 'sys/dev/softraid.c')
| -rw-r--r-- | sys/dev/softraid.c | 4 |
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"); |
