diff options
author | Benjamin Herrenschmidt | 2010-08-04 06:09:23 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt | 2010-08-04 06:38:56 +0200 |
commit | dbe3039e64b1dd4cf26f782d45b524f85b444ad4 (patch) | |
tree | 4c23d00bf2a357691c986276988e571cb5968085 /drivers/video/omap2/vram.c | |
parent | memblock/arm: pfn_valid uses memblock_is_memory() (diff) | |
download | kernel-qcow2-linux-dbe3039e64b1dd4cf26f782d45b524f85b444ad4.tar.gz kernel-qcow2-linux-dbe3039e64b1dd4cf26f782d45b524f85b444ad4.tar.xz kernel-qcow2-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 'drivers/video/omap2/vram.c')
-rw-r--r-- | drivers/video/omap2/vram.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/video/omap2/vram.c b/drivers/video/omap2/vram.c index 0f2532bf0f04..34514a899d13 100644 --- a/drivers/video/omap2/vram.c +++ b/drivers/video/omap2/vram.c @@ -554,12 +554,8 @@ void __init omap_vram_reserve_sdram_memblock(void) size = PAGE_ALIGN(size); if (paddr) { - struct memblock_region res; - - res.base = paddr; - res.size = size; - if ((paddr & ~PAGE_MASK) || memblock_find(&res) || - res.base != paddr || res.size != size) { + if ((paddr & ~PAGE_MASK) || + !memblock_region_is_memory(paddr, size)) { pr_err("Illegal SDRAM region for VRAM\n"); return; } |