Module Name: src
Committed By: blymn
Date: Fri Aug 7 12:09:50 UTC 2009
Modified Files:
src/sys/dev/pci: pccbb.c
Log Message:
Destroy mutex and condvar initialised in pccbbattach().
To generate a diff of this commit:
cvs rdiff -u -r1.190 -r1.191 src/sys/dev/pci/pccbb.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/pci/pccbb.c
diff -u src/sys/dev/pci/pccbb.c:1.190 src/sys/dev/pci/pccbb.c:1.191
--- src/sys/dev/pci/pccbb.c:1.190 Fri Aug 7 12:04:43 2009
+++ src/sys/dev/pci/pccbb.c Fri Aug 7 12:09:50 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pccbb.c,v 1.190 2009/08/07 12:04:43 blymn Exp $ */
+/* $NetBSD: pccbb.c,v 1.191 2009/08/07 12:09:50 blymn Exp $ */
/*
* Copyright (c) 1998, 1999 and 2000
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pccbb.c,v 1.190 2009/08/07 12:04:43 blymn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pccbb.c,v 1.191 2009/08/07 12:09:50 blymn Exp $");
/*
#define CBB_DEBUG
@@ -606,6 +606,10 @@
callout_stop(&sc->sc_insert_ch);
callout_destroy(&sc->sc_insert_ch);
+
+ mutex_destroy(&sc->sc_pwr_mtx);
+ cv_destroy(&sc->sc_pwr_cv);
+
return 0;
}