summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/dwiic_acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpi/dwiic_acpi.c')
-rw-r--r--sys/dev/acpi/dwiic_acpi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/acpi/dwiic_acpi.c b/sys/dev/acpi/dwiic_acpi.c
index 010d1a8a946..1ae1d79c057 100644
--- a/sys/dev/acpi/dwiic_acpi.c
+++ b/sys/dev/acpi/dwiic_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwiic_acpi.c,v 1.6 2018/05/20 09:30:00 kettenis Exp $ */
+/* $OpenBSD: dwiic_acpi.c,v 1.7 2018/05/21 07:23:14 kettenis Exp $ */
/*
* Synopsys DesignWare I2C controller
*
@@ -395,6 +395,9 @@ dwiic_acpi_found_hid(struct aml_node *node, void *arg)
ia.ia_addr = crs.i2c_addr;
ia.ia_cookie = node->parent;
+ if (crs.irq_int != 0 || crs.gpio_int_node != NULL)
+ ia.ia_intr = &crs;
+
config_found(sc->sc_iic, &ia, dwiic_i2c_print);
node->parent->attached = 1;