From: Philippe Schenker <[email protected]> When compiling for R5 with CONFIG_TI_PRUSS enabled, the pruss_probe() function passed a u64* to ofnode_get_addr_size_index(), which expects an fdt_size_t*. This caused a compiler error about incompatible pointer types.
Cast the size pointer to fdt_size_t* to match the function signature. Signed-off-by: Philippe Schenker <[email protected]> --- (no changes since v1) drivers/soc/ti/pruss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/ti/pruss.c b/drivers/soc/ti/pruss.c index e3bb2ede554a..4bc0ff8c2c17 100644 --- a/drivers/soc/ti/pruss.c +++ b/drivers/soc/ti/pruss.c @@ -163,7 +163,7 @@ static int pruss_probe(struct udevice *dev) for (i = 0; i < ARRAY_SIZE(mem_names); i++) { idx = ofnode_stringlist_search(memories, "reg-names", mem_names[i]); priv->mem_regions[i].pa = ofnode_get_addr_size_index(memories, idx, - (u64 *)&priv->mem_regions[i].size); + (fdt_size_t *)&priv->mem_regions[i].size); } sub_node = ofnode_find_subnode(node, "cfg"); -- 2.51.2

