summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-tegra/iovmm-gart.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/iovmm-gart.c b/arch/arm/mach-tegra/iovmm-gart.c
index fa4534d0167b..3ed676b890a5 100644
--- a/arch/arm/mach-tegra/iovmm-gart.c
+++ b/arch/arm/mach-tegra/iovmm-gart.c
@@ -127,13 +127,12 @@ static void do_gart_setup(struct gart_device *gart, const u32 *data)
unsigned long reg;
unsigned int i;
- writel(1, gart->regs + GART_CONFIG);
-
reg = gart->iovmm_base;
for (i = 0; i < gart->page_count; i++) {
gart_set_pte(gart, reg, data ? data[i] : 0);
reg += 1 << GART_PAGE_SHIFT;
}
+ writel(1, gart->regs + GART_CONFIG);
FLUSH_GART_REGS(gart);
}