summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2007-11-09 18:08:08 +0100
committerPatrice Mandin <pmandin@caramail.com>2007-11-09 18:08:08 +0100
commitc2f80ecf4be09b5b9866d12e3b25cdcf7996b1f4 (patch)
tree7e0e98f77d07c08e8781344db8f732c1f480ef3a
parentc20370e0969e41bbf735daf932e37ac5ec959213 (diff)
suspend() and resume() need kernel 2.6.22 or later
-rw-r--r--linux-core/drm_sysfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/drm_sysfs.c b/linux-core/drm_sysfs.c
index 6f8623ce..caec120a 100644
--- a/linux-core/drm_sysfs.c
+++ b/linux-core/drm_sysfs.c
@@ -89,8 +89,10 @@ struct class *drm_sysfs_create(struct module *owner, char *name)
goto err_out;
}
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22))
class->suspend = drm_sysfs_suspend;
class->resume = drm_sysfs_resume;
+#endif
err = class_create_file(class, &class_attr_version);
if (err)