aboutsummaryrefslogtreecommitdiff
path: root/common/fdt.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-08-04 20:50:41 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-08-04 20:50:41 +0300
commite16f5f81dfb2e97a554ec19b941ec05a7942fd2d (patch)
tree46f0609b5be009d4d1057fa02ece4461732941e0 /common/fdt.c
parent5f30284181fcfe5b16dfb94d4fba9a9ed4a2dc6a (diff)
downloadkmi-e16f5f81dfb2e97a554ec19b941ec05a7942fd2d.tar.gz
kmi-e16f5f81dfb2e97a554ec19b941ec05a7942fd2d.zip
add initial smp bringup
Diffstat (limited to 'common/fdt.c')
-rw-r--r--common/fdt.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/common/fdt.c b/common/fdt.c
index 3f20d72..677be7b 100644
--- a/common/fdt.c
+++ b/common/fdt.c
@@ -13,18 +13,3 @@ struct cell_info get_cellinfo(const void *fdt, const int offset)
return (struct cell_info){ fdt_size_cells(fdt, offset),
fdt_address_cells(fdt, offset) };
}
-
-/* how "reg" is interpreted depends on the parent node */
-struct cell_info get_reginfo(const void *fdt, const char *path)
-{
- const char *i = strrchr(path, '/');
- if (!i)
- return (struct cell_info){ 0, 0 };
-
- size_t baselen = i - path;
- if (baselen == 0)
- /* root node */
- baselen = 1;
-
- return get_cellinfo(fdt, fdt_path_offset_namelen(fdt, path, baselen));
-}