mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
[IA64] salinfo: sema_init instead of init_MUTEX
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
parent
3e6b1b25a9
commit
383f9f1741
1 changed files with 1 additions and 1 deletions
|
@ -642,7 +642,7 @@ salinfo_init(void)
|
|||
for (i = 0; i < ARRAY_SIZE(salinfo_log_name); i++) {
|
||||
data = salinfo_data + i;
|
||||
data->type = i;
|
||||
init_MUTEX(&data->mutex);
|
||||
sema_init(&data->mutex, 1);
|
||||
dir = proc_mkdir(salinfo_log_name[i], salinfo_dir);
|
||||
if (!dir)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue