summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/fintek.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-06-24 05:34:36 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-06-24 05:34:36 +0000
commit8919a22510bb2d5e5a6af011d229ac38e966a1a0 (patch)
treec5ffaca5117bee9e089dc3fc5c042d12f0e24d58 /sys/dev/i2c/fintek.c
parent741fb47166c6a7ffa0aea3684329acedb201ef7c (diff)
rework sensor tasks to use the kernels generic workq rather than a special
kernel thread of its own. the api has changed (which will be fixed in the manpage shortly) so all the users of sensor tasks that i can find have been fixed too. noone tested, so its going in to force people to run with it. "put it in" deraadt@
Diffstat (limited to 'sys/dev/i2c/fintek.c')
-rw-r--r--sys/dev/i2c/fintek.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/fintek.c b/sys/dev/i2c/fintek.c
index 7ad803d5ebb..2fb24d0fe4c 100644
--- a/sys/dev/i2c/fintek.c
+++ b/sys/dev/i2c/fintek.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fintek.c,v 1.5 2007/03/22 16:55:31 deraadt Exp $ */
+/* $OpenBSD: fintek.c,v 1.6 2007/06/24 05:34:35 dlg Exp $ */
/*
* Copyright (c) 2006 Dale Rahn <drahn@openbsd.org>
*
@@ -155,7 +155,7 @@ fintek_attach(struct device *parent, struct device *self, void *aux)
sc->sc_sensor[F_FAN1].type = SENSOR_FANRPM;
sc->sc_sensor[F_FAN2].type = SENSOR_FANRPM;
- if (sensor_task_register(sc, fintek_refresh, 5)) {
+ if (sensor_task_register(sc, fintek_refresh, 5) == NULL) {
printf(", unable to register update task\n");
return;
}