Commit cd56876b authored by Ramesh Gupta's avatar Ramesh Gupta Committed by Hari Kanigeri

Fix issues with notify_disable/restore Fix issues with notify_disable/restore

Signed-off-by: default avatarRamesh Gupta G <grgupta@ti.com>
parent a7d575c6
......@@ -328,11 +328,13 @@ u32 notify_disable(u16 proc_id)
NOTIFY_DRIVERINITSTATUS_NOTDONE) {
WARN_ON(1);
} else {
if (drv_handle->fn_table.disable) {
drv_handle->disable_flag[notify_state.disable_depth] =
(u32 *)drv_handle->fn_table.disable
(drv_handle, proc_id);
}
}
}
notify_state.disable_depth++;
mutex_unlock(notify_state.gate_handle);
......@@ -363,13 +365,9 @@ void notify_restore (u32 key, u16 proc_id)
notify_state.disable_depth--;
for (i = 0; i < notify_state.cfg.maxDrivers; i++) {
drv_handle = &(notify_state.drivers[i]);
if (drv_handle->is_init !=
NOTIFY_DRIVERINITSTATUS_NOTDONE) {
WARN_ON(1);
} else {
if (drv_handle->fn_table.restore)
drv_handle->fn_table.restore(drv_handle, key, proc_id);
}
}
mutex_unlock(notify_state.gate_handle);
return;
}
......
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