diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2011-01-03 16:24:03 +0100 |
---|---|---|
committer | Javier Martinez Canillas <martinez.javier@gmail.com> | 2011-01-08 01:52:02 +0100 |
commit | f9737e7aab3b4138542459316696b9efe0302494 (patch) | |
tree | 99dc894d40b9a5cf872abd12537e89e523d0d199 /tty/tiny_tty.c | |
parent | 2e1ee9a9ae136e6686c88d9de9e7d9e3b83ff0ad (diff) | |
download | ldd3-f9737e7aab3b4138542459316696b9efe0302494.tar.gz |
tty: Use sema_init() instead init_MUTEX()
Diffstat (limited to 'tty/tiny_tty.c')
-rw-r--r-- | tty/tiny_tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tty/tiny_tty.c b/tty/tiny_tty.c index a440555..456423d 100644 --- a/tty/tiny_tty.c +++ b/tty/tiny_tty.c @@ -106,7 +106,7 @@ static int tiny_open(struct tty_struct *tty, struct file *file) if (!tiny) return -ENOMEM; - init_MUTEX(&tiny->sem); + sema_init(&tiny->sem, 1); tiny->open_count = 0; tiny->timer = NULL; |