Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/macppc/dev pass the right OF node to i2c devices



details:   https://anonhg.NetBSD.org/src/rev/5e1a3edea5eb
branches:  trunk
changeset: 826759:5e1a3edea5eb
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Sep 27 22:10:19 2017 +0000

description:
pass the right OF node to i2c devices

diffstat:

 sys/arch/macppc/dev/ki2c.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c439af0ef6cf -r 5e1a3edea5eb sys/arch/macppc/dev/ki2c.c
--- a/sys/arch/macppc/dev/ki2c.c        Wed Sep 27 21:04:05 2017 +0000
+++ b/sys/arch/macppc/dev/ki2c.c        Wed Sep 27 22:10:19 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ki2c.c,v 1.22 2017/09/22 03:09:51 macallan Exp $       */
+/*     $NetBSD: ki2c.c,v 1.23 2017/09/27 22:10:19 macallan Exp $       */
 /*     Id: ki2c.c,v 1.7 2002/10/05 09:56:05 tsubai Exp */
 
 /*-
@@ -169,7 +169,7 @@
                prop_dictionary_set(dev, "compatible", data);
                prop_object_release(data);
                prop_dictionary_set_uint32(dev, "addr", addr);
-               prop_dictionary_set_uint64(dev, "cookie", node);
+               prop_dictionary_set_uint64(dev, "cookie", devs);
                prop_array_add(cfg, dev);
                prop_object_release(dev);
        skip:



Home | Main Index | Thread Index | Old Index