From: Tomi Valkeinen Date: Fri, 12 Sep 2008 10:27:16 +0000 (+0300) Subject: OMAPFB: fix printing of reserved memory X-Git-Tag: v2.6.27-omap1^0 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=189f0e76832b4a2d3bcc0d973ed4240170e04c29;p=linux-2.6-omap-h63xx.git OMAPFB: fix printing of reserved memory Print reserved memory only if it was actually reserved. Signed-off-by: Tomi Valkeinen Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/fb.c b/arch/arm/plat-omap/fb.c index 17a92a31e74..7af9e91ee67 100644 --- a/arch/arm/plat-omap/fb.c +++ b/arch/arm/plat-omap/fb.c @@ -206,9 +206,10 @@ void __init omapfb_reserve_sdram(void) config_invalid = 1; return; } - if (rg.paddr) + if (rg.paddr) { reserve_bootmem(rg.paddr, rg.size, BOOTMEM_DEFAULT); - reserved += rg.size; + reserved += rg.size; + } omapfb_config.mem_desc.region[i] = rg; configured_regions++; }