diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/agp/intel-gtt.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index d2733e526a68..8a30a16c5706 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c | |||
@@ -896,14 +896,8 @@ static void i830_write_entry(dma_addr_t addr, unsigned int entry, | |||
896 | { | 896 | { |
897 | u32 pte_flags = I810_PTE_VALID; | 897 | u32 pte_flags = I810_PTE_VALID; |
898 | 898 | ||
899 | switch (flags) { | 899 | if (flags == AGP_USER_CACHED_MEMORY) |
900 | case AGP_DCACHE_MEMORY: | ||
901 | pte_flags |= I810_PTE_LOCAL; | ||
902 | break; | ||
903 | case AGP_USER_CACHED_MEMORY: | ||
904 | pte_flags |= I830_PTE_SYSTEM_CACHED; | 900 | pte_flags |= I830_PTE_SYSTEM_CACHED; |
905 | break; | ||
906 | } | ||
907 | 901 | ||
908 | writel(addr | pte_flags, intel_private.gtt + entry); | 902 | writel(addr | pte_flags, intel_private.gtt + entry); |
909 | } | 903 | } |