mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 06:00:11 +01:00
suspend() and resume() need kernel 2.6.22 or later
This commit is contained in:
parent
c20370e096
commit
c2f80ecf4b
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue