mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ramoops: allow to build without OFTREE support
@ 2016-02-11  9:33 Lucas Stach
  2016-02-11  9:33 ` [PATCH 2/2] ratp-console: select CRC16 and POLLER, depend on CONSOLE_FULL Lucas Stach
  2016-02-11 12:56 ` [PATCH 1/2] ramoops: allow to build without OFTREE support Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Lucas Stach @ 2016-02-11  9:33 UTC (permalink / raw)
  To: barebox

Ramoops may be useful even without oftree support, as kernels
booted without a DT may have other means to reserve the
ramoops memory.

Fixes:
In function `ramoops_probe':
undefined reference to `of_add_reserve_entry'

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 fs/pstore/ram.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 66b4975a3035..fdd92a60a57a 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -455,7 +455,8 @@ static int ramoops_probe(struct ramoops_platform_data *pdata)
 		  ramoops_ecc);
 	globalvar_add_simple("linux.bootargs.ramoops", kernelargs);
 
-	of_add_reserve_entry(cxt->phys_addr, cxt->phys_addr + mem_size);
+	if (IS_ENABLED(CONFIG_OFTREE))
+		of_add_reserve_entry(cxt->phys_addr, cxt->phys_addr + mem_size);
 
 	return 0;
 
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-11 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-11  9:33 [PATCH 1/2] ramoops: allow to build without OFTREE support Lucas Stach
2016-02-11  9:33 ` [PATCH 2/2] ratp-console: select CRC16 and POLLER, depend on CONSOLE_FULL Lucas Stach
2016-02-11 12:56 ` [PATCH 1/2] ramoops: allow to build without OFTREE support Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox