From c158a36c4cfef024ba1be05a163cfd4b00ebea21 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Thu, 23 Sep 2004 05:39:15 +0000 Subject: 1) switches from class_sysfs to drm sysfs implementation to allow customization 2) compiles again on 2.4, but doesn't work --- linux/drmP.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linux/drmP.h') 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 /* For (un)lock_kernel */ #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) #include +#endif #if defined(__alpha__) || defined(__powerpc__) #include /* 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; -- cgit v1.2.3