diff options
author | kn <kn@cvs.openbsd.org> | 2018-11-05 15:13:57 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2018-11-05 15:13:57 +0000 |
commit | 50223ea4f71531fb3a1b80b6b24e66e2765a6dec (patch) | |
tree | 8fe7f659a3d2584a2796a127ee6023f7a199aae1 /sys/dev/pci | |
parent | 38bc9243f25d37d67b5d21ac8bcfb8f033a0908f (diff) |
Fix kernel build without serial console
OK mpi
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/puc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/puc.c b/sys/dev/pci/puc.c index 38d4d238319..4d105db4531 100644 --- a/sys/dev/pci/puc.c +++ b/sys/dev/pci/puc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: puc.c,v 1.26 2018/05/02 19:11:01 phessler Exp $ */ +/* $OpenBSD: puc.c,v 1.27 2018/11/05 15:13:56 kn Exp $ */ /* $NetBSD: puc.c,v 1.3 1999/02/06 06:29:54 cgd Exp $ */ /* @@ -164,6 +164,7 @@ puc_pci_attach(struct device *parent, struct device *self, void *aux) if (sc->sc_bar_mappings[i].mapped) continue; +#if NCOM > 0 /* * If a port on this card is used as serial console, * mapping the associated BAR will fail because the @@ -183,6 +184,7 @@ puc_pci_attach(struct device *parent, struct device *self, void *aux) sc->sc_bar_mappings[i].mapped = 1; continue; } +#endif printf("%s: couldn't map BAR at offset 0x%lx\n", sc->sc_dev.dv_xname, (long)bar); |