aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2005-08-04 02:21:37 +0000
committerIan Dowse <iedowse@FreeBSD.org>2005-08-04 02:21:37 +0000
commit16a0ad03b868518ca0aff6f6011d6c3219a25c51 (patch)
tree05800d59d72044bdb9c7c875f91cd27ca8c8cdf1 /sys/dev
parent70382d5abec0898fa09ed17caba4cadd1f2c415b (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/ums.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index 3e4c47beb091..1955aebf3752 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -114,8 +114,8 @@ struct ums_softc {
int flags; /* device configuration */
#define UMS_Z 0x01 /* z direction available */
-#define UMS_T 0x02 /* aa direction available (tilt) */
#define UMS_SPUR_BUT_UP 0x02 /* spurious button up events */
+#define UMS_T 0x04 /* aa direction available (tilt) */
int nbuttons;
#define MAX_BUTTONS 7 /* chosen because sc_buttons is u_char */
@@ -370,6 +370,7 @@ USB_ATTACH(ums)
UID_ROOT, GID_OPERATOR,
0644, "ums%d", device_get_unit(self));
+ usb_callout_init(sc->callout_handle);
if (usbd_get_quirks(uaa->device)->uq_flags & UQ_SPUR_BUT_UP) {
DPRINTF(("%s: Spurious button up events\n",
USBDEVNAME(sc->sc_dev)));