Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev try to detach on shutdown; for now the only practica...
details: https://anonhg.NetBSD.org/src/rev/aa241827d84d
branches: trunk
changeset: 837532:aa241827d84d
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Dec 09 19:21:16 2018 +0000
description:
try to detach on shutdown; for now the only practical reason is to test that
the driver detach paths work
diffstat:
sys/dev/i2c/i2c.c | 9 +++++----
sys/dev/pci/ichsmb.c | 6 +++---
2 files changed, 8 insertions(+), 7 deletions(-)
diffs (57 lines):
diff -r d613a3639172 -r aa241827d84d sys/dev/i2c/i2c.c
--- a/sys/dev/i2c/i2c.c Sun Dec 09 19:16:10 2018 +0000
+++ b/sys/dev/i2c/i2c.c Sun Dec 09 19:21:16 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i2c.c,v 1.66 2018/06/26 06:34:55 thorpej Exp $ */
+/* $NetBSD: i2c.c,v 1.67 2018/12/09 19:21:16 jdolecek Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.66 2018/06/26 06:34:55 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.67 2018/12/09 19:21:16 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -844,8 +844,9 @@
}
-CFATTACH_DECL2_NEW(iic, sizeof(struct iic_softc),
- iic_match, iic_attach, iic_detach, NULL, iic_rescan, iic_child_detach);
+CFATTACH_DECL3_NEW(iic, sizeof(struct iic_softc),
+ iic_match, iic_attach, iic_detach, NULL, iic_rescan, iic_child_detach,
+ DVF_DETACH_SHUTDOWN);
MODULE(MODULE_CLASS_DRIVER, iic, "i2cexec,i2c_bitbang");
diff -r d613a3639172 -r aa241827d84d sys/dev/pci/ichsmb.c
--- a/sys/dev/pci/ichsmb.c Sun Dec 09 19:16:10 2018 +0000
+++ b/sys/dev/pci/ichsmb.c Sun Dec 09 19:21:16 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ichsmb.c,v 1.58 2018/12/09 19:16:10 jdolecek Exp $ */
+/* $NetBSD: ichsmb.c,v 1.59 2018/12/09 19:21:17 jdolecek Exp $ */
/* $OpenBSD: ichiic.c,v 1.18 2007/05/03 09:36:26 dlg Exp $ */
/*
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.58 2018/12/09 19:16:10 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.59 2018/12/09 19:21:17 jdolecek Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -91,7 +91,7 @@
CFATTACH_DECL3_NEW(ichsmb, sizeof(struct ichsmb_softc),
ichsmb_match, ichsmb_attach, ichsmb_detach, NULL, ichsmb_rescan,
- ichsmb_chdet, 0);
+ ichsmb_chdet, DVF_DETACH_SHUTDOWN);
static int
Home |
Main Index |
Thread Index |
Old Index