Skip to content

Commit

Permalink
memblock/arm: Fix memblock_region_is_memory() typo
Browse files Browse the repository at this point in the history
Fix typo in commit dbe3039 ("memblock/arm: Use memblock_region_is_memory()
for omap fb") - it should be memblock_is_region_memory().

Reported-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: ext Grazvydas Ignotas <notasas@gmail.com>
LKML-Reference: <4CABFADA.9020305@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 8, 2010
1 parent 16c36f7 commit 5fd03dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static int check_fbmem_region(int region_idx, struct omapfb_mem_region *rg,

static int valid_sdram(unsigned long addr, unsigned long size)
{
return memblock_region_is_memory(addr, size);
return memblock_is_region_memory(addr, size);
}

static int reserve_sdram(unsigned long addr, unsigned long size)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap2/vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ void __init omap_vram_reserve_sdram_memblock(void)

if (paddr) {
if ((paddr & ~PAGE_MASK) ||
!memblock_region_is_memory(paddr, size)) {
!memblock_is_region_memory(paddr, size)) {
pr_err("Illegal SDRAM region for VRAM\n");
return;
}
Expand Down

0 comments on commit 5fd03dd

Please sign in to comment.