From 26446654584c096e23dbe5a9b3f641edf9190c9d Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Mon, 8 Apr 2013 20:23:12 -0500 Subject: pstore/ram: remove the power of buffer size limitation There doesn't appear to be any reason for the overall pstore RAM buffer to be a power of 2 size, so remove it. The individual console, ftrace and oops buffers are still a power of 2 size. Signed-off-by: Rob Herring Acked-by: Anton Vorontsov Signed-off-by: Tony Luck --- fs/pstore/ram.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'fs/pstore') diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 1376e5a8f0d6..43abee2c6cb9 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -399,8 +399,6 @@ static int ramoops_probe(struct platform_device *pdev) goto fail_out; } - if (!is_power_of_2(pdata->mem_size)) - pdata->mem_size = rounddown_pow_of_two(pdata->mem_size); if (!is_power_of_2(pdata->record_size)) pdata->record_size = rounddown_pow_of_two(pdata->record_size); if (!is_power_of_2(pdata->console_size)) -- cgit v1.2.3-59-g8ed1b