summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authordyoung <dyoung@NetBSD.org>2009-04-07 17:52:36 +0000
committerdyoung <dyoung@NetBSD.org>2009-04-07 17:52:36 +0000
commitead00d401c2b6025bd12ad20ff980bc3c792fa6b (patch)
tree10bbd3d55d7450a3f8c8766dd3678503327a8e95 /sys
parent1a38ae42571b7f611d4e6137061897780b08476b (diff)
Detach pchb(4) instances at shutdown.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/x86/pci/pchb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/x86/pci/pchb.c b/sys/arch/x86/pci/pchb.c
index f3ce940bc89..f8812513cc4 100644
--- a/sys/arch/x86/pci/pchb.c
+++ b/sys/arch/x86/pci/pchb.c
@@ -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 @@ int pchbdetach(device_t, int);
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)