Lines 70-75
Link Here
|
70 |
|
70 |
|
71 |
/* These are also not present in 2.6 kernels ... */ |
71 |
/* These are also not present in 2.6 kernels ... */ |
72 |
#if (!defined _LINUX_DEVFS_FS_KERNEL_H) || (defined KERNEL_2_6) |
72 |
#if (!defined _LINUX_DEVFS_FS_KERNEL_H) || (defined KERNEL_2_6) |
|
|
73 |
#include <linux/fs.h> |
73 |
static inline int devfs_register_chrdev (unsigned int major, const char *name, |
74 |
static inline int devfs_register_chrdev (unsigned int major, const char *name, |
74 |
struct file_operations *fops) |
75 |
struct file_operations *fops) |
75 |
{ |
76 |
{ |
Lines 77-83
Link Here
|
77 |
} |
78 |
} |
78 |
static inline int devfs_unregister_chrdev (unsigned int major,const char *name) |
79 |
static inline int devfs_unregister_chrdev (unsigned int major,const char *name) |
79 |
{ |
80 |
{ |
80 |
return unregister_chrdev (major, name); |
81 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) |
|
|
82 |
return unregister_chrdev (major, name); |
83 |
#else |
84 |
unregister_chrdev (major, name); |
85 |
return 0; |
86 |
#endif |
81 |
} |
87 |
} |
82 |
#endif |
88 |
#endif |
83 |
|
89 |
|