diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-20 14:37:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-20 14:37:14 +0000 |
commit | 3b9d0d41d0a8bf5335c571323b45429ba9a6ba50 (patch) | |
tree | 3ad5633387915707e31823b5a5c52bd56f3eecec /sys/dev/usb/uthum.c | |
parent | 917b779947fd65884b2ae709d7cf37fdb773f1a3 (diff) |
start the sensors off invalid... ok yuo
Diffstat (limited to 'sys/dev/usb/uthum.c')
-rw-r--r-- | sys/dev/usb/uthum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/uthum.c b/sys/dev/usb/uthum.c index 71920aaf2a3..4c1f72c3aac 100644 --- a/sys/dev/usb/uthum.c +++ b/sys/dev/usb/uthum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthum.c,v 1.12 2010/04/16 04:44:26 yuo Exp $ */ +/* $OpenBSD: uthum.c,v 1.13 2010/04/20 14:37:13 deraadt Exp $ */ /* * Copyright (c) 2009, 2010 Yojiro UO <yuo@nui.org> @@ -245,6 +245,7 @@ uthum_attach(struct device *parent, struct device *self, void *aux) if (sc->sc_sensor[i].dev_type == UTHUM_SENSOR_UNKNOWN) continue; uthum_print_sensorinfo(sc, i); + sc->sc_sensor[i].sensor.flags |= SENSOR_FINVALID; sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i].sensor); sc->sc_sensor[i].attached = 1; sc->sc_num_sensors++; |