summaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2016-02-11 10:33:55 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-11 13:56:00 +0100
commit9a8563b94fd22fc10723aca0f7ed884d8e37a20a (patch)
tree6da2b2eee436ec797d9cb8eb87e6002e8becc4e3 /fs/pstore
parent46989182d5c1f9ccb3a99d82383816b279e10b45 (diff)
downloadbarebox-9a8563b94fd22fc10723aca0f7ed884d8e37a20a.tar.gz
barebox-9a8563b94fd22fc10723aca0f7ed884d8e37a20a.tar.xz
ramoops: allow to build without OFTREE support
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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/ram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 66b4975a30..fdd92a60a5 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;