From e4ffca7586b8d05bd23c7244d31928deaf5d259a Mon Sep 17 00:00:00 2001 From: Marc Balmer Date: Sat, 27 May 2006 21:32:22 +0000 Subject: 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. --- sys/dev/usb/udcf.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/dev/usb') 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 @@ -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; -- cgit v1.2.3