Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Call pmf_device_deregister(9) during detach.



details:   https://anonhg.NetBSD.org/src/rev/3a7ea2620c2f
branches:  trunk
changeset: 762476:3a7ea2620c2f
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Mon Feb 21 15:10:54 2011 +0000

description:
Call pmf_device_deregister(9) during detach.

diffstat:

 sys/arch/x86/x86/coretemp.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r c98a7a505a9e -r 3a7ea2620c2f sys/arch/x86/x86/coretemp.c
--- a/sys/arch/x86/x86/coretemp.c       Mon Feb 21 14:43:58 2011 +0000
+++ b/sys/arch/x86/x86/coretemp.c       Mon Feb 21 15:10:54 2011 +0000
@@ -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;
 }
 



Home | Main Index | Thread Index | Old Index