summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorscole <scole@NetBSD.org>2018-03-04 16:34:20 +0000
committerscole <scole@NetBSD.org>2018-03-04 16:34:20 +0000
commitc65a19129465e3d649814958dbaa6b286c82858f (patch)
tree2e3239cb1c32e784321e016898827dee2658ca67 /sys/dev
parente0d49fd6f2d8c31e4c3360f2e4e1c9d6c5d23fc5 (diff)
Use "#if NPCI > 0" instead of "#ifdef NPCI" for compiling kernels with acpi, without pci.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 8277c97ffbb..a44f0621e18 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.267 2018/03/03 11:23:24 maya Exp $ */
+/* $NetBSD: acpi.c,v 1.268 2018/03/04 16:34:20 scole Exp $ */
/*-
* Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.267 2018/03/03 11:23:24 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.268 2018/03/04 16:34:20 scole Exp $");
#include "pci.h"
#include "opt_acpi.h"
@@ -488,7 +488,7 @@ acpi_attach(device_t parent, device_t self, void *aux)
*/
acpi_build_tree(sc);
-#ifdef NPCI
+#if NPCI > 0
/*
* Probe MCFG table
*/