summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/ihidev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/ihidev.c b/sys/dev/i2c/ihidev.c
index 686d9f3986a..f60db492f07 100644
--- a/sys/dev/i2c/ihidev.c
+++ b/sys/dev/i2c/ihidev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ihidev.c,v 1.20 2019/07/22 14:37:06 jcs Exp $ */
+/* $OpenBSD: ihidev.c,v 1.21 2019/07/31 16:09:12 jcs Exp $ */
/*
* HID-over-i2c driver
*
@@ -129,7 +129,7 @@ ihidev_attach(struct device *parent, struct device *self, void *aux)
printf(", can't establish interrupt");
}
- if (ia->ia_poll) {
+ if (ia->ia_poll || !sc->sc_ih) {
printf(" (polling)");
sc->sc_poll = 1;
sc->sc_fastpoll = 1;