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 <philippe.schenker@impulsing.ch>
This commit is contained in:
committed by
Tom Rini
parent
5d3697b7cf
commit
40768f5ed3
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user