summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-07-30 16:26:51 +1000
committerDave Airlie <airlied@redhat.com>2008-07-30 16:26:59 +1000
commit02b09d271c60d13fbb738c7053429a3b816397db (patch)
tree4904a228c425a7f1ac37e9cc96c038d8fe3246eb /linux-core
parent90b90c65dc78648ddded5eff7628749182c73295 (diff)
i915: add version checks for opregion on old kernels
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/i915_opregion.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/i915_opregion.c b/linux-core/i915_opregion.c
index e691571a..fdd4987e 100644
--- a/linux-core/i915_opregion.c
+++ b/linux-core/i915_opregion.c
@@ -32,6 +32,7 @@
#include "i915_drm.h"
#include "i915_drv.h"
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
#define PCI_ASLE 0xe4
#define PCI_ASLS 0xfc
@@ -384,3 +385,4 @@ void intel_opregion_free(struct drm_device *dev)
opregion->enabled = 0;
}
+#endif