summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/lm87.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-27 20:05:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-27 20:05:57 +0000
commit5e5fbcbe5ae42050539d58d2c27934aad8a9cb52 (patch)
tree46ee8c1d8c38c9d8ed8b73996b79b27ceee609de /sys/dev/i2c/lm87.c
parent4f057a26ad6c13e70cb3709d8083df850fa23d61 (diff)
interrupt clearing applies to lm87 class too (not just lm81 class)
Diffstat (limited to 'sys/dev/i2c/lm87.c')
-rw-r--r--sys/dev/i2c/lm87.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/i2c/lm87.c b/sys/dev/i2c/lm87.c
index 500ab9c4598..c5ab7785e1e 100644
--- a/sys/dev/i2c/lm87.c
+++ b/sys/dev/i2c/lm87.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lm87.c,v 1.12 2005/12/27 20:05:03 deraadt Exp $ */
+/* $OpenBSD: lm87.c,v 1.13 2005/12/27 20:05:56 deraadt Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -155,8 +155,7 @@ lmenv_attach(struct device *parent, struct device *self, void *aux)
* if it is stalled doing an interrupt, unstall it
*/
data2 = (data | LM87_CONFIG1_START);
- if (sc->sc_family == 81)
- data2 = data2 & ~LM87_CONFIG1_INTCLR;
+ data2 = data2 & ~LM87_CONFIG1_INTCLR;
if (data != data2) {
if (iic_exec(sc->sc_tag, I2C_OP_WRITE_WITH_STOP,