summaryrefslogtreecommitdiff
path: root/linux/drmP.h
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-09-23 05:39:15 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-09-23 05:39:15 +0000
commitc158a36c4cfef024ba1be05a163cfd4b00ebea21 (patch)
treeca2f83f1cda34c20c3df6f558f54c3ff10eb6728 /linux/drmP.h
parentaf326f6f0c26191b4aef2183fb485e58495b29a5 (diff)
1) switches from class_sysfs to drm sysfs implementation to allow
customization 2) compiles again on 2.4, but doesn't work
Diffstat (limited to 'linux/drmP.h')
-rw-r--r--linux/drmP.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drmP.h b/linux/drmP.h
index 6a0a73a6..f89db79c 100644
--- a/linux/drmP.h
+++ b/linux/drmP.h
@@ -56,7 +56,9 @@
#include <linux/smp_lock.h> /* For (un)lock_kernel */
#include <linux/mm.h>
#include <linux/pagemap.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
#include <linux/cdev.h>
+#endif
#if defined(__alpha__) || defined(__powerpc__)
#include <asm/pgtable.h> /* For pte_wrprotect */
#endif
@@ -693,7 +695,7 @@ typedef struct drm_minor {
typedef struct drm_global {
unsigned int cards_limit;
drm_minor_t *minors;
- struct class_simple *drm_class;
+ struct drm_sysfs_class *drm_class;
struct proc_dir_entry *proc_root;
struct cdev drm_cdev;
} drm_global_t;