Source-Changes-HG archive

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

[src/thorpej-i2c-spi-conf]: src/sys/arch/macppc/dev Don't use the OF phandle ...



details:   https://anonhg.NetBSD.org/src/rev/dbc437fa8d05
branches:  thorpej-i2c-spi-conf
changeset: 1020799:dbc437fa8d05
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 13 00:59:26 2021 +0000

description:
Don't use the OF phandle here.

diffstat:

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

diffs (34 lines):

diff -r ab1ad7a8b31b -r dbc437fa8d05 sys/arch/macppc/dev/lmu.c
--- a/sys/arch/macppc/dev/lmu.c Thu May 13 00:47:20 2021 +0000
+++ b/sys/arch/macppc/dev/lmu.c Thu May 13 00:59:26 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lmu.c,v 1.8.4.1 2021/05/09 22:36:35 thorpej Exp $ */
+/* $NetBSD: lmu.c,v 1.8.4.2 2021/05/13 00:59:26 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2020 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lmu.c,v 1.8.4.1 2021/05/09 22:36:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lmu.c,v 1.8.4.2 2021/05/13 00:59:26 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -56,7 +56,6 @@
        device_t        sc_dev;
        i2c_tag_t       sc_i2c;
        i2c_addr_t      sc_addr;
-       int             sc_node;
 
        struct sysmon_envsys *sc_sme;
        envsys_data_t   sc_sensors[2];
@@ -166,7 +165,6 @@
        sc->sc_dev = self;
        sc->sc_i2c = ia->ia_tag;
        sc->sc_addr = ia->ia_addr;
-       sc->sc_node = devhandle_to_of(device_handle(self));
        sc->sc_last = 0;
 
        aprint_naive("\n");



Home | Main Index | Thread Index | Old Index