summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-05-20 09:30:01 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-05-20 09:30:01 +0000
commit8b69509fdac66d0d6245227b3533455f1bbdd397 (patch)
tree5892a0cde9a0cfd1a023ee6e775208565fb89238
parent7e43f03488757de20bfd6313ce06c7ee25c0f93f (diff)
Pass the acpi node corresponding to the i2c device down as the cookie.
ok mlarkin@
-rw-r--r--sys/dev/acpi/dwiic_acpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpi/dwiic_acpi.c b/sys/dev/acpi/dwiic_acpi.c
index 73ba53dddb5..010d1a8a946 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.5 2018/05/18 06:49:47 kettenis Exp $ */
+/* $OpenBSD: dwiic_acpi.c,v 1.6 2018/05/20 09:30:00 kettenis Exp $ */
/*
* Synopsys DesignWare I2C controller
*
@@ -393,6 +393,7 @@ dwiic_acpi_found_hid(struct aml_node *node, void *arg)
ia.ia_tag = sc->sc_iba.iba_tag;
ia.ia_name = dev;
ia.ia_addr = crs.i2c_addr;
+ ia.ia_cookie = node->parent;
config_found(sc->sc_iic, &ia, dwiic_i2c_print);
node->parent->attached = 1;