Module Name: src Committed By: dyoung Date: Wed Mar 25 21:43:42 UTC 2009
Modified Files: src/sys/kern: subr_autoconf.c Log Message: DVF_ACTIVE is unconditionally set when we attach a device, so unconditionally clear it after we give a device's deactivate() routine a chance. To generate a diff of this commit: cvs rdiff -u -r1.170 -r1.171 src/sys/kern/subr_autoconf.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/kern/subr_autoconf.c diff -u src/sys/kern/subr_autoconf.c:1.170 src/sys/kern/subr_autoconf.c:1.171 --- src/sys/kern/subr_autoconf.c:1.170 Wed Mar 25 21:28:50 2009 +++ src/sys/kern/subr_autoconf.c Wed Mar 25 21:43:42 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_autoconf.c,v 1.170 2009/03/25 21:28:50 dyoung Exp $ */ +/* $NetBSD: subr_autoconf.c,v 1.171 2009/03/25 21:43:42 dyoung Exp $ */ /* * Copyright (c) 1996, 2000 Christopher G. Demetriou @@ -77,7 +77,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.170 2009/03/25 21:28:50 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.171 2009/03/25 21:43:42 dyoung Exp $"); #include "opt_ddb.h" #include "drvctl.h" @@ -1515,6 +1515,8 @@ device_xname(dev), rv); } + dev->dv_flags &= ~DVF_ACTIVE; + /* * The device has now been successfully detached. */