[PATCH] fixup! pstore: ram: use new of_fixup_reserved_memory() helper

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Aug 15 07:17:00 PDT 2022


Sent out series too soon. Now tested on arm32 system with
ramoops enabled and fixup was functional.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 fs/pstore/ram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index e8830dcc31f0..29585bff5950 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -485,7 +485,7 @@ static int ramoops_of_fixup(struct device_node *root, void *data)
 	if (ret)
 		return ret;
 
-	node = of_get_child_by_name(node, "ramoops");
+	node = of_find_node_by_path_from(root, "/reserved-memory/ramoops");
 	if (!node)
 		return -ENOMEM;
 
-- 
2.30.2




More information about the barebox mailing list