Detach pchb(4) instances at shutdown. trunk
authordyoung <dyoung@NetBSD.org>
Tue, 07 Apr 2009 17:52:36 +0000
branchtrunk
changeset 179370 5a13e6d2146f
parent 179369 22b6cd1e5cf6
child 179371 e30b4cb8cd10
Detach pchb(4) instances at shutdown.
sys/arch/x86/pci/pchb.c
--- a/sys/arch/x86/pci/pchb.c	Tue Apr 07 17:51:46 2009 +0000
+++ b/sys/arch/x86/pci/pchb.c	Tue Apr 07 17:52:36 2009 +0000
@@ -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)