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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux