aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/fb.c')
-rw-r--r--arch/arm/plat-omap/fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/fb.c b/arch/arm/plat-omap/fb.c
index fffc1a0b78a7..f2a1483bdad9 100644
--- a/arch/arm/plat-omap/fb.c
+++ b/arch/arm/plat-omap/fb.c
@@ -126,7 +126,7 @@ static int set_fbmem_region_type(struct omapfb_mem_region *rg, int mem_type,
126 * type = 0 && paddr = 0, a default don't care case maps to 126 * type = 0 && paddr = 0, a default don't care case maps to
127 * the SDRAM type. 127 * the SDRAM type.
128 */ 128 */
129 if (rg->type || (!rg->type && !rg->paddr)) 129 if (rg->type || !rg->paddr)
130 return 0; 130 return 0;
131 if (ranges_overlap(rg->paddr, rg->size, mem_start, mem_size)) { 131 if (ranges_overlap(rg->paddr, rg->size, mem_start, mem_size)) {
132 rg->type = mem_type; 132 rg->type = mem_type;