Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Use fdtbus_get_reg to read "reg" property



details:   https://anonhg.NetBSD.org/src/rev/f2682fd23197
branches:  trunk
changeset: 461339:f2682fd23197
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Nov 23 18:53:05 2019 +0000

description:
Use fdtbus_get_reg to read "reg" property

diffstat:

 sys/dev/fdt/fdt_port.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0a8d1b23007d -r f2682fd23197 sys/dev/fdt/fdt_port.c
--- a/sys/dev/fdt/fdt_port.c    Sat Nov 23 18:52:09 2019 +0000
+++ b/sys/dev/fdt/fdt_port.c    Sat Nov 23 18:53:05 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdt_port.c,v 1.2 2019/01/30 01:24:00 jmcneill Exp $    */
+/*     $NetBSD: fdt_port.c,v 1.3 2019/11/23 18:53:05 jmcneill Exp $    */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: fdt_port.c,v 1.2 2019/01/30 01:24:00 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: fdt_port.c,v 1.3 2019/11/23 18:53:05 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -296,7 +296,7 @@
                }
                if (strcmp(buf, "port") != 0)
                        continue;
-               if (fdtbus_get_reg64(child, 0, &id, NULL) != 0) {
+               if (fdtbus_get_reg(child, 0, &id, NULL) != 0) {
                        if (ports->dp_nports > 1)
                                aprint_error_dev(self,
                                    "%s: missing reg property",



Home | Main Index | Thread Index | Old Index