suspend() and resume() need kernel 2.6.22 or later
authorPatrice Mandin <pmandin@caramail.com>
Fri, 9 Nov 2007 17:08:08 +0000 (18:08 +0100)
committerPatrice Mandin <pmandin@caramail.com>
Fri, 9 Nov 2007 17:08:08 +0000 (18:08 +0100)
linux-core/drm_sysfs.c

index 6f8623c..caec120 100644 (file)
@@ -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)