Module Name: src
Committed By: dyoung
Date: Tue Apr 7 17:52:36 UTC 2009
Modified Files:
src/sys/arch/x86/pci: pchb.c
Log Message:
Detach pchb(4) instances at shutdown.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/x86/pci/pchb.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/pchb.c
diff -u src/sys/arch/x86/pci/pchb.c:1.17 src/sys/arch/x86/pci/pchb.c:1.18
--- src/sys/arch/x86/pci/pchb.c:1.17 Tue Jan 27 08:34:45 2009
+++ src/sys/arch/x86/pci/pchb.c Tue Apr 7 17:52:36 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.17 2009/01/27 08:34:45 markd Exp $ */
+/* $NetBSD: pchb.c,v 1.18 2009/04/07 17:52:36 dyoung Exp $ */
/*-
* Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.17 2009/01/27 08:34:45 markd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.18 2009/04/07 17:52:36 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -78,8 +78,8 @@
static bool pchb_resume(device_t PMF_FN_ARGS);
static bool pchb_suspend(device_t PMF_FN_ARGS);
-CFATTACH_DECL_NEW(pchb, sizeof(struct pchb_softc),
- pchbmatch, pchbattach, pchbdetach, NULL);
+CFATTACH_DECL3_NEW(pchb, sizeof(struct pchb_softc),
+ pchbmatch, pchbattach, pchbdetach, NULL, NULL, NULL, DVF_DETACH_SHUTDOWN);
int
pchbmatch(device_t parent, cfdata_t match, void *aux)