summaryrefslogtreecommitdiff
path: root/sys/dev/usb/hidms.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/hidms.c')
-rw-r--r--sys/dev/usb/hidms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/hidms.c b/sys/dev/usb/hidms.c
index a24368a8744..261a56514c4 100644
--- a/sys/dev/usb/hidms.c
+++ b/sys/dev/usb/hidms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hidms.c,v 1.2 2011/03/04 23:57:52 kettenis Exp $ */
+/* $OpenBSD: hidms.c,v 1.3 2011/04/07 15:30:16 miod Exp $ */
/* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -188,7 +188,7 @@ hidms_setup(struct device *self, struct hidms *ms, uint32_t quirks,
/* figure out the number of buttons */
for (i = 1; i <= MAX_BUTTONS; i++)
if (!hid_locate(desc, dlen, HID_USAGE2(HUP_BUTTON, i), id,
- hid_input, &ms->sc_loc_btn[i - 1], 0))
+ hid_input, &ms->sc_loc_btn[i - 1], NULL))
break;
ms->sc_num_buttons = i - 1;