Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Use "#if NPCI > 0" instead of "#ifdef NPCI" for...



details:   https://anonhg.NetBSD.org/src/rev/5fed4b98d00b
branches:  trunk
changeset: 320902:5fed4b98d00b
user:      scole <scole%NetBSD.org@localhost>
date:      Sun Mar 04 16:34:20 2018 +0000

description:
Use "#if NPCI > 0" instead of "#ifdef NPCI" for compiling kernels with acpi, without pci.

diffstat:

 sys/dev/acpi/acpi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 72074f864445 -r 5fed4b98d00b sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Sun Mar 04 15:51:15 2018 +0000
+++ b/sys/dev/acpi/acpi.c       Sun Mar 04 16:34:20 2018 +0000
@@ -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_build_tree(sc);
 
-#ifdef NPCI
+#if NPCI > 0
        /*
         * Probe MCFG table
         */



Home | Main Index | Thread Index | Old Index