projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c20370e
)
suspend() and resume() need kernel 2.6.22 or later
author
Patrice Mandin
<pmandin@caramail.com>
Fri, 9 Nov 2007 17:08:08 +0000
(18:08 +0100)
committer
Patrice Mandin
<pmandin@caramail.com>
Fri, 9 Nov 2007 17:08:08 +0000
(18:08 +0100)
linux-core/drm_sysfs.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_sysfs.c
b/linux-core/drm_sysfs.c
index
6f8623c
..
caec120
100644
(file)
--- 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)