]> 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 4b6012707307f99c3fdd0995544f8ac4741c8052..c0ff1e39d8934d443db9780e7cdf9e6c75ae7bff 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <asm/cacheflush.h>
 
-#include <mach/iommu.h>
+#include <plat/iommu.h>
 
 #include "iopgtable.h"
 
@@ -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);