diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-25 20:36:14 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-25 20:36:14 +0300 |
| commit | 1cc2a1f4b044df8f0d244f1940a5701d1100ddc5 (patch) | |
| tree | c00defca870f2d3abc278bf18e2b274817c42bcd /common/debug.c | |
| parent | cd984298d7af1d7b376f16d445b75bcc740e60a5 (diff) | |
| download | kmi-1cc2a1f4b044df8f0d244f1940a5701d1100ddc5.tar.gz kmi-1cc2a1f4b044df8f0d244f1940a5701d1100ddc5.zip | |
simplify fdt reg reading
Diffstat (limited to 'common/debug.c')
| -rw-r--r-- | common/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/debug.c b/common/debug.c index 7118733..ff9dc18 100644 --- a/common/debug.c +++ b/common/debug.c @@ -201,7 +201,7 @@ static struct dbg_info __dbg_from_fdt(const void *fdt) /* get serial device address */ struct cell_info ci = get_reginfo(fdt, stdout); void *reg_ptr = (void *)fdt_getprop(fdt, stdout_offset, "reg", NULL); - pm_t dbg_ptr = (pm_t)fdt_load_int_ptr(ci.addr_cells, reg_ptr); + pm_t dbg_ptr = (pm_t)fdt_load_reg_addr(ci, reg_ptr, 0); /* get serial device offset if present */ size_t shift = 0; |
