File 0005-Fix-build-with-2.6.32.patch of Package psb
From 941fe1ffc002eeaee733d13381b84ba1a6eea7d3 Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Mon, 14 Dec 2009 19:41:17 +0100
Subject: [PATCH] Fix build with 2.6.32
---
drm_agpsupport.c | 4 ++++
drm_edid.c | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drm_agpsupport.c b/drm_agpsupport.c
index 04258cb..bb7df4c 100644
--- a/drm_agpsupport.c
+++ b/drm_agpsupport.c
@@ -34,6 +34,10 @@
#include "drmP.h"
#include <linux/module.h>
+#ifndef phys_to_gart
+#define phys_to_gart(x) (x)
+#endif
+
#if __OS_HAS_AGP
/**
diff --git a/drm_edid.c b/drm_edid.c
index 6307cdc..3203a65 100644
--- a/drm_edid.c
+++ b/drm_edid.c
@@ -12,6 +12,10 @@
#include <acpi/acpi_drivers.h>
+#ifndef PREFIX
+#define PREFIX "psb: "
+#endif
+
/* Valid EDID header has these bytes */
static u8 edid_header[] = { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00 };
--
1.6.5.3