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>
* It is recommended that platform codes call this helper in their final_init()
*
* @param fdt: device tree blob
- * @param compat: PLIC node compatible string
*/
-void fdt_plic_fixup(void *fdt, const char *compat);
+void fdt_plic_fixup(void *fdt);
/**
* Fix up the reserved memory node in the device tree
}
}
-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;
void fdt_fixups(void *fdt)
{
- fdt_plic_fixup(fdt, "riscv,plic0");
+ fdt_plic_fixup(fdt);
fdt_reserved_memory_fixup(fdt);
}