# HG changeset patch # User Florian Pose # Date 1266315365 -3600 # Node ID 96adb3e6db74db2ec8e622032e36f824a836bd02 # Parent 0dd4b935efc86e867ada6f3073c35940065bc795 Replaced deprecated init_MUTEX in tty code. diff -r 0dd4b935efc8 -r 96adb3e6db74 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;