summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/adt7460.c
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2007-10-31 20:46:18 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2007-10-31 20:46:18 +0000
commitd3fb3dc5ccb8886e10d7a4fb7a145b4330b6ef02 (patch)
tree625c44aea649461d785bae4dd72184e4a2eb9fb7 /sys/dev/i2c/adt7460.c
parent1fc3b174ac3666252ba071c7baecf438144f7dbe (diff)
don't clear sensor flags that were never set; ok deraadt
Diffstat (limited to 'sys/dev/i2c/adt7460.c')
-rw-r--r--sys/dev/i2c/adt7460.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/i2c/adt7460.c b/sys/dev/i2c/adt7460.c
index afaeac888a8..4d50a0d5e9e 100644
--- a/sys/dev/i2c/adt7460.c
+++ b/sys/dev/i2c/adt7460.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adt7460.c,v 1.18 2007/06/24 05:34:35 dlg Exp $ */
+/* $OpenBSD: adt7460.c,v 1.19 2007/10/31 20:46:17 cnst Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -240,7 +240,6 @@ adt_attach(struct device *parent, struct device *self, void *aux)
if (worklist[i].index >= 32768 &&
sc->chip->ratio[worklist[i].index - 32768] == 0)
continue;
- sc->sc_sensor[i].flags &= ~SENSOR_FINVALID;
sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
}
sensordev_install(&sc->sc_sensordev);