diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2006-05-27 21:32:22 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2006-05-27 21:32:22 +0000 |
commit | e4ffca7586b8d05bd23c7244d31928deaf5d259a (patch) | |
tree | 36a341dbca42562f42f35e75b9801d7d088228d3 /sys/dev/usb/udcf.c | |
parent | 7467bc18e4fbb6934b8cb2993baaacd18d82744e (diff) |
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.
Diffstat (limited to 'sys/dev/usb/udcf.c')
-rw-r--r-- | sys/dev/usb/udcf.c | 7 |
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; |