drm: stash AGP include under the do-we-have-AGP ifdef
authorEric Anholt <eric@anholt.net>
Thu, 15 Jan 2009 09:16:25 +0000 (01:16 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 22 Jan 2009 12:27:11 +0000 (22:27 +1000)
This fixes the MIPS with DRM build.

Signed-off-by: Eric Anholt <eric@anholt.net>
Tested-by: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_agpsupport.c

index 3d33b82..1479659 100644 (file)
 
 #include "drmP.h"
 #include <linux/module.h>
-#include <asm/agp.h>
 
 #if __OS_HAS_AGP
 
+#include <asm/agp.h>
+
 /**
  * Get AGP information.
  *