ARM: OMAP: Fix printing of reserved memory for frambuffer
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Mon, 11 May 2009 16:58:19 +0000 (09:58 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 11 May 2009 16:58:19 +0000 (09:58 -0700)
Print reserved memory only if it was actually reserved.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/fb.c

index ce6b4baeedec416aa48d64f17872e799079cd328..3746222bed10ff52f6002556c21cfca486e2babf 100644 (file)
@@ -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++;
        }