diff options
author | Alan Cox <alan@redhat.com> | 2008-10-13 05:42:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-13 12:51:43 -0400 |
commit | 73ec06fc5f5c8e1097a7a4a4ab2d7c6c3a007e81 (patch) | |
tree | 2c244c8b0d853f82e479eaf72ca64d6c9209c6a6 /include/linux/tty.h | |
parent | 8b0a88d5912ab549d5adac2c8498ecdaae5319a5 (diff) |
tty: Finish fixing up the init_dev interface to use ERR_PTR
Original suggestion and proposal from Sukadev Bhattiprolu.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r-- | include/linux/tty.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 6cc7ccc93c69..54523a37e956 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -401,8 +401,8 @@ extern dev_t tty_devnum(struct tty_struct *tty); | |||
401 | extern void proc_clear_tty(struct task_struct *p); | 401 | extern void proc_clear_tty(struct task_struct *p); |
402 | extern struct tty_struct *get_current_tty(void); | 402 | extern struct tty_struct *get_current_tty(void); |
403 | extern void tty_default_fops(struct file_operations *fops); | 403 | extern void tty_default_fops(struct file_operations *fops); |
404 | extern int tty_init_dev(struct tty_driver *driver, int idx, | 404 | extern struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx, |
405 | struct tty_struct **ret_tty, int first_ok); | 405 | int first_ok); |
406 | extern void tty_release_dev(struct file *filp); | 406 | extern void tty_release_dev(struct file *filp); |
407 | 407 | ||
408 | extern struct mutex tty_mutex; | 408 | extern struct mutex tty_mutex; |