]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/gpu/drm/ttm/ttm_page_alloc.c
Fix ttm_page_alloc.c build breakage
[net-next-2.6.git] / drivers / gpu / drm / ttm / ttm_page_alloc.c
index b1d67dc973dce9b2f86581f3de139bf2ad34f80b..f394b3b2fadf91fd5caa088d5204ea57882579a9 100644 (file)
 #include <linux/slab.h>
 
 #include <asm/atomic.h>
-#include <asm/agp.h>
 
 #include "ttm/ttm_bo_driver.h"
 #include "ttm/ttm_page_alloc.h"
 
+#ifdef TTM_HAS_AGP
+#include <asm/agp.h>
+#endif
 
 #define NUM_PAGES_TO_ALLOC             (PAGE_SIZE/sizeof(struct page *))
 #define SMALL_ALLOCATION               16