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>
This commit is contained in:
parent
b494420086
commit
fdf69a1788
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user