Module Name: src
Committed By: pgoyette
Date: Mon Jun 20 17:07:21 UTC 2011
Modified Files:
src/sys/arch/x86/x86: viac7temp.c
Log Message:
Initialize sensor state before registering.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x86/x86/viac7temp.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/viac7temp.c
diff -u src/sys/arch/x86/x86/viac7temp.c:1.5 src/sys/arch/x86/x86/viac7temp.c:1.6
--- src/sys/arch/x86/x86/viac7temp.c:1.5 Thu Feb 24 15:42:17 2011
+++ src/sys/arch/x86/x86/viac7temp.c Mon Jun 20 17:07:21 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: viac7temp.c,v 1.5 2011/02/24 15:42:17 jruoho Exp $ */
+/* $NetBSD: viac7temp.c,v 1.6 2011/06/20 17:07:21 pgoyette Exp $ */
/*-
* Copyright (c) 2009 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: viac7temp.c,v 1.5 2011/02/24 15:42:17 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viac7temp.c,v 1.6 2011/06/20 17:07:21 pgoyette Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -97,6 +97,7 @@
sc->sc_sensor.units = ENVSYS_STEMP;
sc->sc_sensor.flags = ENVSYS_FMONLIMITS;
+ sc->sc_sensor.state = ENVSYS_SINVALID;
(void)strlcpy(sc->sc_sensor.desc, "temperature",
sizeof(sc->sc_sensor.desc));