Module Name: src
Committed By: scole
Date: Sun Mar 4 16:34:20 UTC 2018
Modified Files:
src/sys/dev/acpi: acpi.c
Log Message:
Use "#if NPCI > 0" instead of "#ifdef NPCI" for compiling kernels with acpi,
without pci.
To generate a diff of this commit:
cvs rdiff -u -r1.267 -r1.268 src/sys/dev/acpi/acpi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/acpi.c
diff -u src/sys/dev/acpi/acpi.c:1.267 src/sys/dev/acpi/acpi.c:1.268
--- src/sys/dev/acpi/acpi.c:1.267 Sat Mar 3 11:23:24 2018
+++ src/sys/dev/acpi/acpi.c Sun Mar 4 16:34:20 2018
@@ -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 se
*/
acpi_build_tree(sc);
-#ifdef NPCI
+#if NPCI > 0
/*
* Probe MCFG table
*/