summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/asb100.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/i2c/asb100.c')
-rw-r--r--sys/dev/i2c/asb100.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/asb100.c b/sys/dev/i2c/asb100.c
index 43759eab6dc..37961c82ece 100644
--- a/sys/dev/i2c/asb100.c
+++ b/sys/dev/i2c/asb100.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asb100.c,v 1.9 2007/03/22 16:55:31 deraadt Exp $ */
+/* $OpenBSD: asb100.c,v 1.10 2007/06/24 05:34:35 dlg Exp $ */
/*
* Copyright (c) 2005 Damien Miller <djm@openbsd.org>
@@ -258,7 +258,7 @@ asbtm_attach(struct device *parent, struct device *self, void *aux)
strlcpy(sc->sc_sensor[ASB100_SENSOR_TEMP3].desc, "External",
sizeof(sc->sc_sensor[ASB100_SENSOR_TEMP3].desc));
- if (sensor_task_register(sc, asbtm_refresh, 5)) {
+ if (sensor_task_register(sc, asbtm_refresh, 5) == NULL) {
printf(", unable to register update task\n");
return;
}