diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2003-05-24 21:42:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-24 21:42:02 -0700 |
| commit | 4460bbfdaec0d570c1e50cfa9b4d57ada50bb9db (patch) | |
| tree | ca15d9e00d9eba44999c577eea8aeae9885f9325 /include | |
| parent | 106a92d12dc1fbe260b89d3783bcdf96a74656d3 (diff) | |
[PATCH] register_chrdev_region() cleanup
register_chrdev_region() sanitized, code in tty_io.c that dealt with it
cleaned up.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fs.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 7365aef817b5..1b7fac010f1f 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1056,13 +1056,14 @@ extern void bd_release(struct block_device *); extern void blk_run_queues(void); /* fs/char_dev.c */ -extern int register_chrdev_region(unsigned int, unsigned int, int, - const char *, struct file_operations *); +extern int alloc_chrdev_region(dev_t *, unsigned, char *, + struct file_operations *); +extern int register_chrdev_region(dev_t, unsigned, char *, + struct file_operations *); extern int register_chrdev(unsigned int, const char *, struct file_operations *); extern int unregister_chrdev(unsigned int, const char *); -extern int unregister_chrdev_region(unsigned int, unsigned int, int, - const char *); +extern void unregister_chrdev_region(dev_t, unsigned); extern int chrdev_open(struct inode *, struct file *); /* fs/block_dev.c */ |
