From 4460bbfdaec0d570c1e50cfa9b4d57ada50bb9db Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Sat, 24 May 2003 21:42:02 -0700 Subject: [PATCH] register_chrdev_region() cleanup register_chrdev_region() sanitized, code in tty_io.c that dealt with it cleaned up. --- include/linux/fs.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3