diff options
author | 2016-05-23 15:23:20 +0000 | |
---|---|---|
committer | 2016-05-23 15:23:20 +0000 | |
commit | bb262015dc92822251d01cea9cfce91263c688fc (patch) | |
tree | 102d80554e9ef72626c710b28d781a465e75833a | |
parent | remove the function pointer from mbufs. this memory is shared with data (diff) | |
download | wireguard-openbsd-bb262015dc92822251d01cea9cfce91263c688fc.tar.xz wireguard-openbsd-bb262015dc92822251d01cea9cfce91263c688fc.zip |
Pass the device node to ia_cookie so we can pick it up in the i2c driver.
ok deraadt kettenis
-rw-r--r-- | sys/arch/macppc/dev/maci2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/macppc/dev/maci2c.c b/sys/arch/macppc/dev/maci2c.c index f54500137a4..9302159b2d1 100644 --- a/sys/arch/macppc/dev/maci2c.c +++ b/sys/arch/macppc/dev/maci2c.c @@ -1,4 +1,4 @@ -/* $OpenBSD: maci2c.c,v 1.10 2010/04/09 17:01:30 jasper Exp $ */ +/* $OpenBSD: maci2c.c,v 1.11 2016/05/23 15:23:20 mglocker Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -42,6 +42,7 @@ maciic_scan(struct device *self, struct i2cbus_attach_args *iba, void *aux) bzero(&ia, sizeof ia); ia.ia_tag = iba->iba_tag; ia.ia_addr = (reg >> 1); + ia.ia_cookie = &node; bzero(name, sizeof name); if (OF_getprop(node, "compatible", &name, sizeof name) && name[0]) |