summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-08-04 14:09:23 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-08-04 14:38:56 +1000
commitdbe3039e64b1dd4cf26f782d45b524f85b444ad4 (patch)
tree4c23d00bf2a357691c986276988e571cb5968085 /arch/arm
parent5e6f6aa1c243fafeb2648cf4ebd5abd99ab2531b (diff)
downloadlinux-dbe3039e64b1dd4cf26f782d45b524f85b444ad4.tar.gz
linux-dbe3039e64b1dd4cf26f782d45b524f85b444ad4.tar.bz2
linux-dbe3039e64b1dd4cf26f782d45b524f85b444ad4.zip
memblock/arm: Use memblock_region_is_memory() for omap fb
Instead of the deprecated memblock_find() Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-omap/fb.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/fb.c b/arch/arm/plat-omap/fb.c
index 05bf22827404..441af2bdfd15 100644
--- a/arch/arm/plat-omap/fb.c
+++ b/arch/arm/plat-omap/fb.c
@@ -173,11 +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)
{
- struct memblock_region res;
-
- res.base = addr;
- res.size = size;
- return !memblock_find(&res) && res.base == addr && res.size == size;
+ return memblock_region_is_memory(addr, size);
}
static int reserve_sdram(unsigned long addr, unsigned long size)