]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/arm/mm/dma-mapping.c
Merge branch 'smp' into misc
[mv-sheeva.git] / arch / arm / mm / dma-mapping.c
index 85f9361f3e023d4b80e3d77fe9fcce595cb63b05..e24fe6d9c712abb8f30a0b5a77d5f6b1cdc0a28a 100644 (file)
@@ -198,7 +198,7 @@ __dma_alloc_remap(struct page *page, size_t size, gfp_t gfp, pgprot_t prot)
         * fragmentation of the DMA space, and also prevents allocations
         * smaller than a section from crossing a section boundary.
         */
-       bit = fls(size - 1) + 1;
+       bit = fls(size - 1);
        if (bit > SECTION_SHIFT)
                bit = SECTION_SHIFT;
        align = 1 << bit;