Commit 383f9f17 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Tony Luck

[IA64] salinfo: sema_init instead of init_MUTEX

Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 3e6b1b25
...@@ -642,7 +642,7 @@ salinfo_init(void) ...@@ -642,7 +642,7 @@ salinfo_init(void)
for (i = 0; i < ARRAY_SIZE(salinfo_log_name); i++) { for (i = 0; i < ARRAY_SIZE(salinfo_log_name); i++) {
data = salinfo_data + i; data = salinfo_data + i;
data->type = i; data->type = i;
init_MUTEX(&data->mutex); sema_init(&data->mutex, 1);
dir = proc_mkdir(salinfo_log_name[i], salinfo_dir); dir = proc_mkdir(salinfo_log_name[i], salinfo_dir);
if (!dir) if (!dir)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment