summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2007-06-06 18:06:06 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2007-06-06 18:06:06 +0000
commite931c635eebe4828c0495a5558438712dff6364b (patch)
treeb184249673b93edc510ed4173fd88b7eed2f04b6 /sys/dev
parent36fad30906bd772756a382c4b20a5ef26a8ea015 (diff)
make sensors framework usage consistent with other drivers; ok damien@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_wpi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c
index 68fd4aa0b2e..1cd10c1e075 100644
--- a/sys/dev/pci/if_wpi.c
+++ b/sys/dev/pci/if_wpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wpi.c,v 1.39 2007/06/05 19:49:40 damien Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.40 2007/06/06 18:06:05 cnst Exp $ */
/*-
* Copyright (c) 2006, 2007
@@ -323,12 +323,11 @@ wpi_attach(struct device *parent, struct device *self, void *aux)
strlcpy(sc->sensor.desc, "temperature 0..285",
sizeof sc->sensor.desc);
sc->sensor.type = SENSOR_INTEGER; /* not in muK! */
- sc->sensor.status = SENSOR_S_OK;
/* temperature invalid until interface is up */
sc->sensor.value = 0;
sc->sensor.flags = SENSOR_FINVALID;
- sensordev_install(&sc->sensordev);
sensor_attach(&sc->sensordev, &sc->sensor);
+ sensordev_install(&sc->sensordev);
timeout_set(&sc->calib_to, wpi_calib_timeout, sc);