Module Name:    src
Committed By:   pgoyette
Date:           Mon Jun 20 15:01:30 UTC 2011

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

Log Message:
Inialize sensor state before registering.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 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.25 src/sys/arch/x86/x86/coretemp.c:1.26
--- src/sys/arch/x86/x86/coretemp.c:1.25	Sat Mar 19 06:15:12 2011
+++ src/sys/arch/x86/x86/coretemp.c	Mon Jun 20 15:01:30 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: coretemp.c,v 1.25 2011/03/19 06:15:12 ahoka Exp $ */
+/* $NetBSD: coretemp.c,v 1.26 2011/06/20 15:01:30 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coretemp.c,v 1.25 2011/03/19 06:15:12 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coretemp.c,v 1.26 2011/06/20 15:01:30 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -172,6 +172,7 @@
 
 	sc->sc_sensor.units = ENVSYS_STEMP;
 	sc->sc_sensor.flags = ENVSYS_FMONCRITICAL;
+	sc->sc_sensor.state = ENVSYS_SINVALID;
 
 	(void)pmf_device_register(self, NULL, NULL);
 	(void)snprintf(sc->sc_sensor.desc, sizeof(sc->sc_sensor.desc),

Reply via email to