]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/arm/plat-omap/iommu.c
Merge branch '7xx-iosplit-plat' with omap-fixes
[linux-beck.git] / arch / arm / plat-omap / iommu.c
index aa84729a0dff7b1161387bc7e468b27756d739a7..c0ff1e39d8934d443db9780e7cdf9e6c75ae7bff 100644 (file)
@@ -664,7 +664,7 @@ static size_t iopgtable_clear_entry_core(struct iommu *obj, u32 da)
                nent = 1; /* for the next L1 entry */
        } else {
                bytes = IOPGD_SIZE;
-               if (*iopgd & IOPGD_SUPER) {
+               if ((*iopgd & IOPGD_SUPER) == IOPGD_SUPER) {
                        nent *= 16;
                        /* rewind to the 1st entry */
                        iopgd = (u32 *)((u32)iopgd & IOSUPER_MASK);