summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorPhilippe Schenker <[email protected]>2025-11-11 08:16:27 +0100
committerTom Rini <[email protected]>2025-11-18 12:50:05 -0600
commit40768f5ed3ef82ac11236cdd2e50cde79b5debe5 (patch)
treed18fe30544fcf860b8d5ef50db9aee8a1a709fce /drivers/soc
parent5d3697b7cf0006fee3fa12966643d605ae0777cc (diff)
soc: ti: pruss: Fix size ptr type in probe
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]>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/ti/pruss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/ti/pruss.c b/drivers/soc/ti/pruss.c
index e3bb2ede554..4bc0ff8c2c1 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");