diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-12-03 20:41:39 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-12-03 20:41:39 -0800 |
| commit | 2279d7d0b39c0dc1604c5ccd7b03109a9db1c244 (patch) | |
| tree | 729383649a9c4fef45e69d020cfe958f769dd1d7 /include/linux/devfs_fs_kernel.h | |
| parent | 060a98d5b8f1db42763fd5754eb68bf067ddf6d9 (diff) | |
[PATCH] devfs major/minor removal
major/minor replaced with a single field (dev_t) in devfs_entry
Diffstat (limited to 'include/linux/devfs_fs_kernel.h')
| -rw-r--r-- | include/linux/devfs_fs_kernel.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h index f507e591c34f..e8bbfa88fd26 100644 --- a/include/linux/devfs_fs_kernel.h +++ b/include/linux/devfs_fs_kernel.h @@ -74,8 +74,8 @@ extern void devfs_register_series (devfs_handle_t dir, const char *format, umode_t mode, void *ops, void *info); extern int devfs_alloc_major (char type); extern void devfs_dealloc_major (char type, int major); -extern kdev_t devfs_alloc_devnum (char type); -extern void devfs_dealloc_devnum (char type, kdev_t devnum); +extern dev_t devfs_alloc_devnum (char type); +extern void devfs_dealloc_devnum (char type, dev_t devnum); extern int devfs_alloc_unique_number (struct unique_numspace *space); extern void devfs_dealloc_unique_number (struct unique_numspace *space, int number); @@ -199,12 +199,12 @@ static inline void devfs_dealloc_major (char type, int major) return; } -static inline kdev_t devfs_alloc_devnum (char type) +static inline dev_t devfs_alloc_devnum (char type) { - return NODEV; + return 0; } -static inline void devfs_dealloc_devnum (char type, kdev_t devnum) +static inline void devfs_dealloc_devnum (char type, dev_t devnum) { return; } |
