Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205191
b: refs/heads/master
c: 31d1d48
h: refs/heads/master
i:
  205189: ae72c53
  205187: b2232ca
  205183: 2b2bbee
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Aug 6, 2010
1 parent 269fc05 commit 05f5dc1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e456a124353a753e9d1fadfbf5cd459c2f197ae
refs/heads/master: 31d1d48e199e99077fb30f6fb9a793be7bec756f
2 changes: 1 addition & 1 deletion trunk/drivers/char/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ static int __init chr_dev_init(void)
NULL, devlist[minor].name);
}

return 0;
return tty_init();
}

fs_initcall(chr_dev_init);
4 changes: 2 additions & 2 deletions trunk/drivers/char/tty_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -3128,7 +3128,7 @@ static struct cdev tty_cdev, console_cdev;
* Ok, now we can initialize the rest of the tty devices and can count
* on memory allocations, interrupts etc..
*/
static int __init tty_init(void)
int __init tty_init(void)
{
cdev_init(&tty_cdev, &tty_fops);
if (cdev_add(&tty_cdev, MKDEV(TTYAUX_MAJOR, 0), 1) ||
Expand All @@ -3149,4 +3149,4 @@ static int __init tty_init(void)
#endif
return 0;
}
module_init(tty_init);

1 change: 1 addition & 0 deletions trunk/fs/char_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/cdev.h>
#include <linux/mutex.h>
#include <linux/backing-dev.h>
#include <linux/tty.h>

#include "internal.h"

Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/tty.h
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ static inline void tty_audit_push_task(struct task_struct *tsk,
}
#endif

/* tty_io.c */
extern int __init tty_init(void);

/* tty_ioctl.c */
extern int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,
unsigned int cmd, unsigned long arg);
Expand Down

0 comments on commit 05f5dc1

Please sign in to comment.