Commit 1e8655f8 authored by Ben Hutchings's avatar Ben Hutchings Committed by Dave Airlie

drm/ttm: Fix build on architectures without AGP

Make inclusion of <asm/agp.h> conditional on TTM_HAS_AGP.  The use
of the functions declared in it is already conditional.
Reported-by: default avatarGeert Stappers <stappers@stappers.nl>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Tested-by: default avatarGeert Stappers <stappers@stappers.nl>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 8d369bb1
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment