diff options
author | Constantine A. Murenin <cnst@cvs.openbsd.org> | 2009-01-24 22:30:19 +0000 |
---|---|---|
committer | Constantine A. Murenin <cnst@cvs.openbsd.org> | 2009-01-24 22:30:19 +0000 |
commit | 05ad4782bfe89cf76f11bf22bc566dc37469d143 (patch) | |
tree | 7d0abcfa16d2b2e90c0830d0c715d28b1a5d6fdf | |
parent | 98ae138974e079123a57f1f759c05103a1cfcb2d (diff) |
use more appropriate sensor_task_register(9) paradigm; ok mk
-rw-r--r-- | sys/dev/isa/sch311x.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/isa/sch311x.c b/sys/dev/isa/sch311x.c index f769afea708..961015a9cc3 100644 --- a/sys/dev/isa/sch311x.c +++ b/sys/dev/isa/sch311x.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sch311x.c,v 1.2 2009/01/24 22:04:50 cnst Exp $ */ +/* $OpenBSD: sch311x.c,v 1.3 2009/01/24 22:30:18 cnst Exp $ */ /* * Copyright (c) 2008 Mark Kettenis <kettenis@openbsd.org> * Copyright (c) 2009 Michael Knudsen <mk@openbsd.org> @@ -343,9 +343,12 @@ schsio_hwm_init(struct schsio_softc *sc) for (i = 0; i < SCHSIO_SENSORS; i++) sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]); + if (sensor_task_register(sc, schsio_hwm_update, + SCHSIO_HWM_INTERVAL) == NULL) { + printf(": unable to register the update task"); + return; + } sensordev_install(&sc->sc_sensordev); - - sensor_task_register(sc, schsio_hwm_update, SCHSIO_HWM_INTERVAL); } void |