mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] fixup! pstore: ram: use new of_fixup_reserved_memory() helper
Date: Mon, 15 Aug 2022 16:17:00 +0200	[thread overview]
Message-ID: <20220815141700.2392626-1-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20220815114246.2275465-2-a.fatoum@pengutronix.de>

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

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




  reply	other threads:[~2022-08-15 14:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 11:42 [PATCH 1/2] of: add " Ahmad Fatoum
2022-08-15 11:42 ` [PATCH 2/2] pstore: ram: use " Ahmad Fatoum
2022-08-15 14:17   ` Ahmad Fatoum [this message]
2022-08-16  8:18 ` [PATCH 1/2] of: add " Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220815141700.2392626-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox