summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-07-30 16:52:13 +1000
committerDave Airlie <airlied@redhat.com>2008-07-30 16:52:13 +1000
commit95c02743c96ca9e959f68a6e942206bdfadae53a (patch)
tree3c33d9ec25b86aa21023961818c9f7305297e5d7 /linux-core
parent02b09d271c60d13fbb738c7053429a3b816397db (diff)
i915: more version checks
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/i915_drv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/i915_drv.c b/linux-core/i915_drv.c
index abb45de7..cf8016c0 100644
--- a/linux-core/i915_drv.c
+++ b/linux-core/i915_drv.c
@@ -80,7 +80,9 @@ static int i915_suspend(struct drm_device *dev, pm_message_t state)
i915_save_state(dev);
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
intel_opregion_free(dev);
+#endif
if (state.event == PM_EVENT_SUSPEND) {
/* Shut down the device */
@@ -101,7 +103,9 @@ static int i915_resume(struct drm_device *dev)
i915_restore_state(dev);
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
intel_opregion_init(dev);
+#endif
return 0;
}