[patch 23/43] drm: stash AGP include under the do-we-have-AGP ifdef

From: Greg KH
Date: Fri Jan 30 2009 - 22:07:31 EST


2.6.28-stable review patch. If anyone has any objections, please let us know.

------------------

From: Eric Anholt <eric@xxxxxxxxxx>

commit 1bb88edb7a3769992026f34fd648bb459b0469aa upstream.

This fixes the MIPS with DRM build.

Signed-off-by: Eric Anholt <eric@xxxxxxxxxx>
Tested-by: Martin Michlmayr <tbm@xxxxxxxxxx>
Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

---
drivers/gpu/drm/drm_agpsupport.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/gpu/drm/drm_agpsupport.c
+++ b/drivers/gpu/drm/drm_agpsupport.c
@@ -33,10 +33,11 @@

#include "drmP.h"
#include <linux/module.h>
-#include <asm/agp.h>

#if __OS_HAS_AGP

+#include <asm/agp.h>
+
/**
* Get AGP information.
*

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/