Module Name:    src
Committed By:   dyoung
Date:           Mon Mar 22 17:23:44 UTC 2010

Modified Files:
        src/sys/dev/cardbus: if_ex_cardbus.c

Log Message:
Detach at shutdown.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/cardbus/if_ex_cardbus.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/dev/cardbus/if_ex_cardbus.c
diff -u src/sys/dev/cardbus/if_ex_cardbus.c:1.52 src/sys/dev/cardbus/if_ex_cardbus.c:1.53
--- src/sys/dev/cardbus/if_ex_cardbus.c:1.52	Fri Mar 19 01:34:46 2010
+++ src/sys/dev/cardbus/if_ex_cardbus.c	Mon Mar 22 17:23:44 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ex_cardbus.c,v 1.52 2010/03/19 01:34:46 dyoung Exp $	*/
+/*	$NetBSD: if_ex_cardbus.c,v 1.53 2010/03/22 17:23:44 dyoung Exp $	*/
 
 /*
  * Copyright (c) 1998 and 1999
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ex_cardbus.c,v 1.52 2010/03/19 01:34:46 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ex_cardbus.c,v 1.53 2010/03/22 17:23:44 dyoung Exp $");
 
 /* #define EX_DEBUG 4 */	/* define to report information for debugging */
 
@@ -114,8 +114,9 @@
 
 };
 
-CFATTACH_DECL_NEW(ex_cardbus, sizeof(struct ex_cardbus_softc),
-    ex_cardbus_match, ex_cardbus_attach, ex_cardbus_detach, ex_activate);
+CFATTACH_DECL3_NEW(ex_cardbus, sizeof(struct ex_cardbus_softc),
+    ex_cardbus_match, ex_cardbus_attach, ex_cardbus_detach, ex_activate,
+    NULL, NULL, DVF_DETACH_SHUTDOWN);
 
 const struct ex_cardbus_product {
 	uint32_t	ecp_prodid;	/* CardBus product ID */

Reply via email to