summaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2019-11-23 18:53:05 +0000
committerjmcneill <jmcneill@NetBSD.org>2019-11-23 18:53:05 +0000
commitd1bc8c4f99a737aea360fa656d7c85cb8a90f8d3 (patch)
tree893aa304855359dda777ebf88f0be51c8622a805 /sys/dev/fdt
parent4c906da7131337ca03dc98d32b52bf63597a7a56 (diff)
Use fdtbus_get_reg to read "reg" property
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/fdt_port.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdt/fdt_port.c b/sys/dev/fdt/fdt_port.c
index 12c710cb106..cd6f672f786 100644
--- a/sys/dev/fdt/fdt_port.c
+++ b/sys/dev/fdt/fdt_port.c
@@ -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 @@ again:
}
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",