Replaced deprecated init_MUTEX in tty code.
authorFlorian Pose <fp@igh-essen.com>
Tue, 16 Feb 2010 11:16:05 +0100
changeset 1808 96adb3e6db74
parent 1807 0dd4b935efc8
child 1809 586be70ff70a
Replaced deprecated init_MUTEX in tty code.
tty/module.c
--- a/tty/module.c	Tue Feb 16 11:08:05 2010 +0100
+++ b/tty/module.c	Tue Feb 16 11:16:05 2010 +0100
@@ -130,7 +130,7 @@
 
     printk(KERN_INFO PFX "TTY driver %s\n", EC_MASTER_VERSION);
 
-    init_MUTEX(&tty_sem);
+    sema_init(&tty_sem, 1);
 
     for (i = 0; i < EC_TTY_MAX_DEVICES; i++) {
         ttys[i] = NULL;
@@ -201,7 +201,7 @@
     init_timer(&t->timer);
     t->tty = NULL;
     t->open_count = 0;
-    init_MUTEX(&t->sem);
+    sema_init(&t->sem, 1);
     t->ops = *ops;
     t->cb_data = cb_data;