Module Name:    src
Committed By:   jruoho
Date:           Mon Feb 21 15:10:54 UTC 2011

Modified Files:
        src/sys/arch/x86/x86: coretemp.c

Log Message:
Call pmf_device_deregister(9) during detach.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/x86/x86/coretemp.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/arch/x86/x86/coretemp.c
diff -u src/sys/arch/x86/x86/coretemp.c:1.20 src/sys/arch/x86/x86/coretemp.c:1.21
--- src/sys/arch/x86/x86/coretemp.c:1.20	Mon Feb 21 12:56:52 2011
+++ src/sys/arch/x86/x86/coretemp.c	Mon Feb 21 15:10:54 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: coretemp.c,v 1.20 2011/02/21 12:56:52 jruoho Exp $ */
+/* $NetBSD: coretemp.c,v 1.21 2011/02/21 15:10:54 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coretemp.c,v 1.20 2011/02/21 12:56:52 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coretemp.c,v 1.21 2011/02/21 15:10:54 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -199,6 +199,8 @@
 	if (sc->sc_sme != NULL)
 		sysmon_envsys_unregister(sc->sc_sme);
 
+	pmf_device_deregister(self);
+
 	return 0;
 }
 

Reply via email to