]> err.no Git - linux-2.6/blobdiff - arch/avr32/mm/ioremap.c
atmel_lcdfb: don't initialize a pre-allocated framebuffer
[linux-2.6] / arch / avr32 / mm / ioremap.c
index 8cfec65e37f76f72ac101aaacc1315affe1da913..3437c82434ac9ec189742862d1ce996223feabf4 100644 (file)
@@ -77,6 +77,8 @@ void __iounmap(void __iomem *addr)
 
        if ((unsigned long)addr >= P4SEG)
                return;
+       if (PXSEG(addr) == P2SEG)
+               return;
 
        p = remove_vm_area((void *)(PAGE_MASK & (unsigned long __force)addr));
        if (unlikely(!p)) {