From 8919a22510bb2d5e5a6af011d229ac38e966a1a0 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sun, 24 Jun 2007 05:34:36 +0000 Subject: 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@ --- sys/dev/i2c/adm1025.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/i2c/adm1025.c') diff --git a/sys/dev/i2c/adm1025.c b/sys/dev/i2c/adm1025.c index 911c8398203..5a92ab081b7 100644 --- a/sys/dev/i2c/adm1025.c +++ b/sys/dev/i2c/adm1025.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adm1025.c,v 1.24 2007/03/22 16:55:31 deraadt Exp $ */ +/* $OpenBSD: adm1025.c,v 1.25 2007/06/24 05:34:35 dlg Exp $ */ /* * Copyright (c) 2005 Theo de Raadt @@ -179,7 +179,7 @@ admtm_attach(struct device *parent, struct device *self, void *aux) strlcpy(sc->sc_sensor[SMSC_TEMP2].desc, "External", sizeof(sc->sc_sensor[SMSC_TEMP2].desc)); - if (sensor_task_register(sc, admtm_refresh, 5)) { + if (sensor_task_register(sc, admtm_refresh, 5) == NULL) { printf(", unable to register update task\n"); return; } -- cgit v1.2.3