Merge "drivers: soc: Add mutex lock in audio_notifier_late_init"
This commit is contained in:
commit
68a715abd5
1 changed files with 2 additions and 0 deletions
|
@ -626,9 +626,11 @@ static int __init audio_notifier_late_init(void)
|
|||
* If pdr registration failed, register clients on next service
|
||||
* Do in late init to ensure that SSR subsystem is initialized
|
||||
*/
|
||||
mutex_lock(¬ifier_mutex);
|
||||
if (!audio_notifer_is_service_enabled(AUDIO_NOTIFIER_PDR_SERVICE))
|
||||
audio_notifer_reg_all_clients();
|
||||
|
||||
mutex_unlock(¬ifier_mutex);
|
||||
return 0;
|
||||
}
|
||||
late_initcall(audio_notifier_late_init);
|
||||
|
|
Loading…
Add table
Reference in a new issue