Module Name: src
Committed By: jakllsch
Date: Sun Sep 27 18:27:01 UTC 2009
Modified Files:
src/sys/arch/x86/pci: ichlpcib.c
Log Message:
Make this build without gpio(4).
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/x86/pci/ichlpcib.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/arch/x86/pci/ichlpcib.c
diff -u src/sys/arch/x86/pci/ichlpcib.c:1.20 src/sys/arch/x86/pci/ichlpcib.c:1.21
--- src/sys/arch/x86/pci/ichlpcib.c:1.20 Sun Sep 27 17:55:31 2009
+++ src/sys/arch/x86/pci/ichlpcib.c Sun Sep 27 18:27:01 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ichlpcib.c,v 1.20 2009/09/27 17:55:31 jakllsch Exp $ */
+/* $NetBSD: ichlpcib.c,v 1.21 2009/09/27 18:27:01 jakllsch Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ichlpcib.c,v 1.20 2009/09/27 17:55:31 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ichlpcib.c,v 1.21 2009/09/27 18:27:01 jakllsch Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -303,10 +303,12 @@
struct lpcib_softc *sc = device_private(self);
uint32_t val;
+#if NGPIO > 0
if (sc->sc_gpiobus == child) {
sc->sc_gpiobus = NULL;
return;
}
+#endif
if (sc->sc_hpetbus != child) {
pcibchilddet(self, child);
return;