Use "#if NPCI > 0" instead of "#ifdef NPCI" for compiling kernels with acpi, without pci.
This commit is contained in:
parent
e618459d02
commit
fe7c8ea34c
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue