diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-27 22:18:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-27 22:18:45 +0000 |
commit | a5acd9c9e68694f3cb892de5aa373f1371b2aae7 (patch) | |
tree | ce42793af69df93f7629d2537ee5fcea91e3fd8d /sys | |
parent | a2ce9c316a7e9d2acfa3382fbe302b2e17e77913 (diff) |
oops, messed up "enabling run"
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/i2c/adm1021.c | 4 |
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, |