Module Name:    src
Committed By:   pgoyette
Date:           Sat Apr  3 14:19:17 UTC 2010

Modified Files:
        src/sys/dev/pci: arcmsr.c

Log Message:
If we're detaching the device, make sure we unregister the sensors.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/pci/arcmsr.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/arcmsr.c
diff -u src/sys/dev/pci/arcmsr.c:1.23 src/sys/dev/pci/arcmsr.c:1.24
--- src/sys/dev/pci/arcmsr.c:1.23	Sun Mar 14 18:07:01 2010
+++ src/sys/dev/pci/arcmsr.c	Sat Apr  3 14:19:17 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: arcmsr.c,v 1.23 2010/03/14 18:07:01 pgoyette Exp $ */
+/*	$NetBSD: arcmsr.c,v 1.24 2010/04/03 14:19:17 pgoyette Exp $ */
 /*	$OpenBSD: arc.c,v 1.68 2007/10/27 03:28:27 dlg Exp $ */
 
 /*
@@ -21,7 +21,7 @@
 #include "bio.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arcmsr.c,v 1.23 2010/03/14 18:07:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arcmsr.c,v 1.24 2010/04/03 14:19:17 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -238,6 +238,7 @@
 	if (arc_msg0(sc, ARC_REG_INB_MSG0_FLUSH_CACHE) != 0)
 		aprint_error_dev(self, "timeout waiting to flush cache\n");
 
+	sysmon_envsys_unregister(sc->sc_sme);
 	return 0;
 }
 

Reply via email to