summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbalmer <mbalmer@openbsd.org>2006-05-27 21:32:21 +0000
committermbalmer <mbalmer@openbsd.org>2006-05-27 21:32:21 +0000
commit679151f0d9c0ce273b42e9ce2fe9c9cc254a263a (patch)
tree5b17570f8dacf3416f6addc80b73194260685cbd
parentmake ntpd listen on the hotplug socket and decode yadda yadda, because (diff)
downloadwireguard-openbsd-679151f0d9c0ce273b42e9ce2fe9c9cc254a263a.tar.xz
wireguard-openbsd-679151f0d9c0ce273b42e9ce2fe9c9cc254a263a.zip
There is no longer the need to create INVALID sensors on stock, the sensor
framework will create hotplug events for sensor addition/deletion. ntpd will catch these events.
-rw-r--r--sys/dev/usb/udcf.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/usb/udcf.c b/sys/dev/usb/udcf.c
index 7af7e938ed0..072d5eb25a2 100644
--- a/sys/dev/usb/udcf.c
+++ b/sys/dev/usb/udcf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udcf.c,v 1.7 2006/05/27 18:22:04 mbalmer Exp $ */
+/* $OpenBSD: udcf.c,v 1.8 2006/05/27 21:32:21 mbalmer Exp $ */
/*
* Copyright (c) 2006 Marc Balmer <mbalmer@openbsd.org>
@@ -179,8 +179,6 @@ USB_ATTACH(udcf)
sizeof(sc->sc_sensor.device));
sc->sc_sensor.type = SENSOR_TIMEDELTA;
sc->sc_sensor.status = SENSOR_S_UNKNOWN;
- sc->sc_sensor.flags = SENSOR_FINVALID;
- sensor_add(&sc->sc_sensor);
/* Prepare the USB request to probe the value */
@@ -413,8 +411,7 @@ udcf_probe(void *xsc)
sizeof(sc->sc_sensor.desc));
DPRINTF(("add timedelta sensor for %s\n",
sc->sc_sensor.desc));
- sc->sc_sensor.flags &=
- ~SENSOR_FINVALID;
+ sensor_add(&sc->sc_sensor);
}
sc->sc_sensor.status = SENSOR_S_OK;