summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-02 01:33:40 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-02 01:33:40 +0000
commitf1ce9ab7b99a82f5ece96b854569f95491842b55 (patch)
tree3ed925520e023af306c837ab9c3a698a91a62eb9 /sys
parent7eb42072dc35ee8618520e6d102b2a3490d86028 (diff)
Forgotten file in the midi commit
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/sb_isa.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/isa/sb_isa.c b/sys/dev/isa/sb_isa.c
index 3113de89470..10462a903b6 100644
--- a/sys/dev/isa/sb_isa.c
+++ b/sys/dev/isa/sb_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sb_isa.c,v 1.3 1998/04/28 00:03:24 deraadt Exp $ */
+/* $OpenBSD: sb_isa.c,v 1.4 1999/01/02 01:33:39 niklas Exp $ */
/* $NetBSD: sb_isa.c,v 1.15 1997/11/30 15:32:25 drochner Exp $ */
/*
@@ -47,6 +47,7 @@
#include <sys/audioio.h>
#include <dev/audio_if.h>
+#include <dev/midi_if.h>
#include <dev/mulaw.h>
#include <dev/isa/isavar.h>
@@ -162,9 +163,12 @@ sb_isa_attach(parent, self, aux)
struct isa_attach_args *ia = aux;
if (!sbfind(parent, sc, ia) ||
- bus_space_map(sc->sc_iot, ia->ia_iobase, ia->ia_iosize,
- 0, &sc->sc_ioh))
+ bus_space_map(sc->sc_iot, ia->ia_iobase, ia->ia_iosize, 0,
+ &sc->sc_ioh)) {
+ printf("%s: sbfind failed\n", sc->sc_dev.dv_xname);
return;
+ }
+ sc->sc_ic = ia->ia_ic;
sc->sc_isa = parent;
sbattach(sc);
}