|
@@ -50,7 +50,7 @@
|
|
|
#include <linux/kthread.h>
|
|
|
#include <drm/ttm/ttm_bo_driver.h>
|
|
|
#include <drm/ttm/ttm_page_alloc.h>
|
|
|
-#ifdef TTM_HAS_AGP
|
|
|
+#if IS_ENABLED(CONFIG_AGP)
|
|
|
#include <asm/agp.h>
|
|
|
#endif
|
|
|
|
|
@@ -271,7 +271,7 @@ static struct kobj_type ttm_pool_kobj_type = {
|
|
|
#ifndef CONFIG_X86
|
|
|
static int set_pages_array_wb(struct page **pages, int addrinarray)
|
|
|
{
|
|
|
-#ifdef TTM_HAS_AGP
|
|
|
+#if IS_ENABLED(CONFIG_AGP)
|
|
|
int i;
|
|
|
|
|
|
for (i = 0; i < addrinarray; i++)
|
|
@@ -282,7 +282,7 @@ static int set_pages_array_wb(struct page **pages, int addrinarray)
|
|
|
|
|
|
static int set_pages_array_wc(struct page **pages, int addrinarray)
|
|
|
{
|
|
|
-#ifdef TTM_HAS_AGP
|
|
|
+#if IS_ENABLED(CONFIG_AGP)
|
|
|
int i;
|
|
|
|
|
|
for (i = 0; i < addrinarray; i++)
|
|
@@ -293,7 +293,7 @@ static int set_pages_array_wc(struct page **pages, int addrinarray)
|
|
|
|
|
|
static int set_pages_array_uc(struct page **pages, int addrinarray)
|
|
|
{
|
|
|
-#ifdef TTM_HAS_AGP
|
|
|
+#if IS_ENABLED(CONFIG_AGP)
|
|
|
int i;
|
|
|
|
|
|
for (i = 0; i < addrinarray; i++)
|