Module Name: src
Committed By: macallan
Date: Fri Sep 29 14:15:42 UTC 2017
Modified Files:
src/sys/arch/macppc/dev: pmu.c
Log Message:
pass the right device node to i2c devices
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/macppc/dev/pmu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/macppc/dev/pmu.c
diff -u src/sys/arch/macppc/dev/pmu.c:1.28 src/sys/arch/macppc/dev/pmu.c:1.29
--- src/sys/arch/macppc/dev/pmu.c:1.28 Fri Sep 1 20:10:08 2017
+++ src/sys/arch/macppc/dev/pmu.c Fri Sep 29 14:15:42 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: pmu.c,v 1.28 2017/09/01 20:10:08 macallan Exp $ */
+/* $NetBSD: pmu.c,v 1.29 2017/09/29 14:15:42 macallan Exp $ */
/*-
* Copyright (c) 2006 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmu.c,v 1.28 2017/09/01 20:10:08 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmu.c,v 1.29 2017/09/29 14:15:42 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -373,7 +373,7 @@ pmu_attach(device_t parent, device_t sel
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: