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

Greg KH
2009-01-31T03:07:29Z

[-- Attachment #1: drm-stash-agp-include-under-the-do-we-have-agp-ifdef.patch --]
[-- Type: text/plain, Size: 770 bytes --]

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

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

From: Eric Anholt <eric@anholt.net>

commit 1bb88edb7a3769992026f34fd648bb459b0469aa upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
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.
*