[PATCH] powerpc: RTC memory corruption
[powerpc.git] / arch / powerpc / sysdev / dart_iommu.c
index e00b46b..6298264 100644 (file)
@@ -59,7 +59,7 @@ static unsigned long dart_tablesize;
 static u32 *dart_vbase;
 
 /* Mapped base address for the dart */
-static unsigned int *__iomem dart;
+static unsigned int __iomem *dart;
 
 /* Dummy val that entries are set to when unused */
 static unsigned int dart_emptyval;
@@ -139,7 +139,6 @@ static void dart_build(struct iommu_table *tbl, long index,
 
                *(dp++) = DARTMAP_VALID | (rpn & DARTMAP_RPNMASK);
 
-               rpn++;
                uaddr += DART_PAGE_SIZE;
        }