Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/macppc/dev/fcu.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/macppc/dev/fcu.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.4.8.1 retrieving revision 1.5 diff -u -p -r1.4.8.1 -r1.5 --- src/sys/arch/macppc/dev/fcu.c 2021/08/09 01:16:01 1.4.8.1 +++ src/sys/arch/macppc/dev/fcu.c 2022/04/08 10:17:53 1.5 @@ -1,4 +1,4 @@ -/* $NetBSD: fcu.c,v 1.4.8.1 2021/08/09 01:16:01 thorpej Exp $ */ +/* $NetBSD: fcu.c,v 1.5 2022/04/08 10:17:53 andvar Exp $ */ /*- * Copyright (c) 2018 Michael Lorenz @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: fcu.c,v 1.4.8.1 2021/08/09 01:16:01 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fcu.c,v 1.5 2022/04/08 10:17:53 andvar Exp $"); #include #include @@ -198,10 +198,8 @@ fcu_attach(device_t parent, device_t sel /* round up sensors */ int ch; - int const phandle = devhandle_to_of(device_handle(self)); - sc->sc_nsensors = 0; - ch = OF_child(phandle); + ch = OF_child(ia->ia_cookie); while (ch != 0) { char type[32], descr[32]; uint32_t reg; @@ -505,7 +503,7 @@ fcu_adjust(void *cookie) for (i = 0; i < FCU_ZONE_COUNT; i++) fancontrol_adjust_zone(&sc->sc_zones[i]); /* - * take a shorter nap if we're in the proccess of adjusting a + * take a shorter nap if we're in the process of adjusting a * PWM fan, which relies on measuring speed and then changing * its duty cycle until we're reasonable close to the target * speed