From 2b8a0fad76530533447e5366d2c252897bd2daee Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 3 May 2002 17:27:34 +0000 Subject: [PATCH] fix for broken compatibility headers in 2.2.18 through 2.2.20, got rid of devfs_get_handle() which was apparently a typo --- include/linux/devfs_fs_kernel.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h index c37d6bf0..54ad13ef 100644 --- a/include/linux/devfs_fs_kernel.h +++ b/include/linux/devfs_fs_kernel.h @@ -18,7 +18,7 @@ static inline int devfs_register_chrdev (unsigned int major, const char *name, struct file_operations *fops) { return register_chrdev (major, name, fops); -} +} static inline int devfs_unregister_chrdev (unsigned int major,const char *name) { @@ -36,13 +36,6 @@ static inline void devfs_unregister (devfs_handle_t de) { } -static inline devfs_handle_t devfs_get_handle (devfs_handle_t dir, - const char *name, unsigned int major, unsigned int minor, - char type, int traverse_symlinks) -{ - return NULL; -} - static inline devfs_handle_t devfs_find_handle (devfs_handle_t dir, const char *name, unsigned int major, unsigned int minor, char type, int traverse_symlinks) @@ -52,6 +45,11 @@ static inline devfs_handle_t devfs_find_handle (devfs_handle_t dir, #else #include_next + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0) +#define devfs_find_handle(dir, name, major, minor, type, traverse) devfs_find_handle(dir, name, strlen(name), major, minor, type, traverse) +#endif + #endif #endif -- 2.26.2