Source-Changes-HG archive

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

[src/thorpej-i2c-spi-conf2]: src/sys/arch/macppc/dev Adapt to thorpej-i2c-spi...



details:   https://anonhg.NetBSD.org/src/rev/33c80c216eed
branches:  thorpej-i2c-spi-conf2
changeset: 985142:33c80c216eed
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Aug 09 01:16:01 2021 +0000

description:
Adapt to thorpej-i2c-spi-conf2: ia->ia_cookie is gone.

diffstat:

 sys/arch/macppc/dev/fcu.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 921b68803529 -r 33c80c216eed sys/arch/macppc/dev/fcu.c
--- a/sys/arch/macppc/dev/fcu.c Mon Aug 09 01:09:41 2021 +0000
+++ b/sys/arch/macppc/dev/fcu.c Mon Aug 09 01:16:01 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fcu.c,v 1.4 2021/07/30 22:07:14 macallan Exp $ */
+/* $NetBSD: fcu.c,v 1.4.8.1 2021/08/09 01:16:01 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2018 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fcu.c,v 1.4 2021/07/30 22:07:14 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fcu.c,v 1.4.8.1 2021/08/09 01:16:01 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -198,8 +198,10 @@
        /* round up sensors */
        int ch;
 
+       int const phandle = devhandle_to_of(device_handle(self));
+
        sc->sc_nsensors = 0;
-       ch = OF_child(ia->ia_cookie);
+       ch = OF_child(phandle);
        while (ch != 0) {
                char type[32], descr[32];
                uint32_t reg;



Home | Main Index | Thread Index | Old Index