mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 06:35:36 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40573
|
@ -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…
Reference in a new issue