]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAPFB: fix printing of reserved memory v2.6.27-omap1
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Fri, 12 Sep 2008 10:27:16 +0000 (13:27 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 24 Oct 2008 19:36:18 +0000 (12:36 -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 17a92a31e74670213ce0196d8e17107f2589f3bd..7af9e91ee677c46fb24e8d76a58751491ff0b3ba 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++;
        }