aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2021-03-27 13:05:26 +0800
committerAnup Patel <anup@brainfault.org>2021-04-01 10:27:28 +0530
commitca3f35821baa18e309d856c0cf886b81970f2a00 (patch)
tree0dcd2e6229c6ea424623bb9902030953be7aea32 /lib
parent9190ad12f7053497f2bd06af29f25015f7890278 (diff)
downloadopensbi-ca3f35821baa18e309d856c0cf886b81970f2a00.zip
opensbi-ca3f35821baa18e309d856c0cf886b81970f2a00.tar.gz
opensbi-ca3f35821baa18e309d856c0cf886b81970f2a00.tar.bz2
lib/utils: Drop the 'compat' parameter of fdt_plic_fixup()
At present fdt_plic_fixup() accepts a 'compat' parameter for PLIC compatible string. In preparation to support the new DT bindings, drop this and use "riscv,plic0" directly in fdt_plic_fixup(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/utils/fdt/fdt_fixup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/utils/fdt/fdt_fixup.c b/lib/utils/fdt/fdt_fixup.c
index eea450d..a306ff5 100644
--- a/lib/utils/fdt/fdt_fixup.c
+++ b/lib/utils/fdt/fdt_fixup.c
@@ -51,13 +51,13 @@ void fdt_cpu_fixup(void *fdt)
}
}
-void fdt_plic_fixup(void *fdt, const char *compat)
+void fdt_plic_fixup(void *fdt)
{
u32 *cells;
int i, cells_count;
int plic_off;
- plic_off = fdt_node_offset_by_compatible(fdt, 0, compat);
+ plic_off = fdt_node_offset_by_compatible(fdt, 0, "riscv,plic0");
if (plic_off < 0)
return;
@@ -257,7 +257,7 @@ int fdt_reserved_memory_nomap_fixup(void *fdt)
void fdt_fixups(void *fdt)
{
- fdt_plic_fixup(fdt, "riscv,plic0");
+ fdt_plic_fixup(fdt);
fdt_reserved_memory_fixup(fdt);
}