]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/agp/i460-agp.c
fix historic ioremap() abuse in AGP
[linux-2.6-omap-h63xx.git] / drivers / char / agp / i460-agp.c
index e72a83e2bad54bb46c8a426ebb18add2872aa30d..76f581c85a7d5697120668c3bfcea4a5b1b445ce 100644 (file)
@@ -527,7 +527,6 @@ static void *i460_alloc_page (struct agp_bridge_data *bridge)
 
        if (I460_IO_PAGE_SHIFT <= PAGE_SHIFT) {
                page = agp_generic_alloc_page(agp_bridge);
-               global_flush_tlb();
        } else
                /* Returning NULL would cause problems */
                /* AK: really dubious code. */
@@ -539,7 +538,6 @@ static void i460_destroy_page (void *page, int flags)
 {
        if (I460_IO_PAGE_SHIFT <= PAGE_SHIFT) {
                agp_generic_destroy_page(page, flags);
-               global_flush_tlb();
        }
 }