public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAPFB: fix printing of reserved memory
@ 2008-09-12 10:27 Tomi Valkeinen
  2008-10-17 21:45 ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Tomi Valkeinen @ 2008-09-12 10:27 UTC (permalink / raw)
  To: linux-omap

Print reserved memory only if it was actually reserved.
---

 arch/arm/plat-omap/fb.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/plat-omap/fb.c b/arch/arm/plat-omap/fb.c
index f9927a7..63c82ef 100644
--- a/arch/arm/plat-omap/fb.c
+++ b/arch/arm/plat-omap/fb.c
@@ -207,9 +207,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++;
 	}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-24 19:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-12 10:27 [PATCH] OMAPFB: fix printing of reserved memory Tomi Valkeinen
2008-10-17 21:45 ` Tony Lindgren
2008-10-20 14:45   ` Tomi Valkeinen
2008-10-24 19:26     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox