mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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