Commit 922f9cfa authored by Denis Cheng's avatar Denis Cheng Committed by Linus Torvalds

fs/char_dev.c: chrdev_open marked static and removed from fs.h

There is an outdated comment in serial_core.c also fixed.
Signed-off-by: default avatarDenis Cheng <crquan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b55ab616
...@@ -1553,8 +1553,8 @@ static struct uart_state *uart_get(struct uart_driver *drv, int line) ...@@ -1553,8 +1553,8 @@ static struct uart_state *uart_get(struct uart_driver *drv, int line)
} }
/* /*
* In 2.4.5, calls to uart_open are serialised by the BKL in * calls to uart_open are serialised by the BKL in
* linux/fs/devices.c:chrdev_open() * fs/char_dev.c:chrdev_open()
* Note that if this fails, then uart_close() _will_ be called. * Note that if this fails, then uart_close() _will_ be called.
* *
* In time, we want to scrap the "opening nonpresent ports" * In time, we want to scrap the "opening nonpresent ports"
......
...@@ -357,7 +357,7 @@ void cdev_put(struct cdev *p) ...@@ -357,7 +357,7 @@ void cdev_put(struct cdev *p)
/* /*
* Called every time a character special file is opened * Called every time a character special file is opened
*/ */
int chrdev_open(struct inode * inode, struct file * filp) static int chrdev_open(struct inode *inode, struct file *filp)
{ {
struct cdev *p; struct cdev *p;
struct cdev *new = NULL; struct cdev *new = NULL;
......
...@@ -1624,7 +1624,6 @@ extern int register_chrdev(unsigned int, const char *, ...@@ -1624,7 +1624,6 @@ extern int register_chrdev(unsigned int, const char *,
const struct file_operations *); const struct file_operations *);
extern void unregister_chrdev(unsigned int, const char *); extern void unregister_chrdev(unsigned int, const char *);
extern void unregister_chrdev_region(dev_t, unsigned); extern void unregister_chrdev_region(dev_t, unsigned);
extern int chrdev_open(struct inode *, struct file *);
extern void chrdev_show(struct seq_file *,off_t); extern void chrdev_show(struct seq_file *,off_t);
/* fs/block_dev.c */ /* fs/block_dev.c */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment