summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-10-22 11:41:22 +0000
committerbde <bde@FreeBSD.org>1998-10-22 11:41:22 +0000
commit26033041e3c9bf0f6df299937fdffe2e51f14da0 (patch)
tree36c962b640232d1b4189d6470e1c4ba22c1846dd /sys/i386/isa
parentc3cf05a4e92f8b7ed631f5015acbe1636dd62c66 (diff)
downloadFreeBSD-src-26033041e3c9bf0f6df299937fdffe2e51f14da0.zip
FreeBSD-src-26033041e3c9bf0f6df299937fdffe2e51f14da0.tar.gz
Fixed the ifdef for `uart' driver being present. The sound-driver-specific
ifdef used in uart6850.c is bogus. Reported by: Paul Allenby <pallenby@mikom.csir.co.za>
Diffstat (limited to 'sys/i386/isa')
-rw-r--r--sys/i386/isa/sound/soundcard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c
index 475c16d..4272b15 100644
--- a/sys/i386/isa/sound/soundcard.c
+++ b/sys/i386/isa/sound/soundcard.c
@@ -34,6 +34,8 @@
#endif /* DEVFS */
#if NSND > 0 /* from "snd.h" */
+#include "uart.h"
+
#include <vm/vm.h>
#include <vm/pmap.h>
#include <sys/mman.h>
@@ -428,7 +430,7 @@ sndattach(struct isa_device * dev)
if (strcmp(dname, "sscape") == 0 || strcmp(dname, "trix") == 0)
dev->id_ointr = sscapeintr;
#endif
-#if NSND > 0
+#if NUART > 0
if (strcmp(dname, "uart0") == 0)
dev->id_ointr = m6850intr;
#endif
OpenPOWER on IntegriCloud