drm/ttm: Fix build on architectures without AGP
authorBen Hutchings <ben@decadent.org.uk>
Sun, 18 Jul 2010 20:51:42 +0000 (21:51 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Jul 2010 05:24:06 +0000 (15:24 +1000)
commit1e8655f87333def92bb8215b423adc65403b08a5
treec746916b7ef9c78b4cef92a7daac61e2c0af7b73
parent8d369bb196f1f9111cb7ab839d4f420378fa7b30
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: Geert Stappers <stappers@stappers.nl>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Tested-by: Geert Stappers <stappers@stappers.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c