summaryrefslogtreecommitdiff
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-27 22:18:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-27 22:18:45 +0000
commita5acd9c9e68694f3cb892de5aa373f1371b2aae7 (patch)
treece42793af69df93f7629d2537ee5fcea91e3fd8d /sys/dev/i2c
parenta2ce9c316a7e9d2acfa3382fbe302b2e17e77913 (diff)
oops, messed up "enabling run"
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r--sys/dev/i2c/adm1021.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/adm1021.c b/sys/dev/i2c/adm1021.c
index c6ec208999b..ad9c2dbad36 100644
--- a/sys/dev/i2c/adm1021.c
+++ b/sys/dev/i2c/adm1021.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adm1021.c,v 1.12 2005/12/27 18:28:51 deraadt Exp $ */
+/* $OpenBSD: adm1021.c,v 1.13 2005/12/27 22:18:44 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt
@@ -96,7 +96,7 @@ admtemp_attach(struct device *parent, struct device *self, void *aux)
printf(", cannot get control register\n");
return;
}
- if ((data & ADM1021_CONFIG_RUN) == 0) {
+ if (data & ADM1021_CONFIG_RUN) {
data &= ~ADM1021_CONFIG_RUN;
cmd = ADM1021_CONFIG_WRITE;
if (iic_exec(sc->sc_tag, I2C_OP_WRITE_WITH_STOP,