drm/ttm: Fix build on architectures without AGP
[pandora-kernel.git] / drivers / gpu / drm / ttm / ttm_page_alloc.c
index b1d67dc..1f32b46 100644 (file)
@@ -40,7 +40,9 @@
 #include <linux/slab.h>
 
 #include <asm/atomic.h>
+#ifdef TTM_HAS_AGP
 #include <asm/agp.h>
+#endif
 
 #include "ttm/ttm_bo_driver.h"
 #include "ttm/ttm_page_alloc.h"