mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
Merge "asoc: destroy mutex during module_exit"
This commit is contained in:
commit
fed8cf2681
3 changed files with 7 additions and 0 deletions
|
|
@ -1524,6 +1524,7 @@ int __init msm_voice_host_init(void)
|
|||
void msm_voice_host_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&msm_pcm_driver);
|
||||
mutex_destroy(&hpcm_drv.lock);
|
||||
}
|
||||
|
||||
MODULE_DESCRIPTION("PCM module platform driver");
|
||||
|
|
|
|||
|
|
@ -850,7 +850,12 @@ int __init msm_pcm_voice_init(void)
|
|||
|
||||
void msm_pcm_voice_exit(void)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
platform_driver_unregister(&msm_pcm_driver);
|
||||
|
||||
for (i = 0; i < VOICE_SESSION_INDEX_MAX; i++)
|
||||
mutex_destroy(&voice_info[i].lock);
|
||||
}
|
||||
|
||||
MODULE_DESCRIPTION("Voice PCM module platform driver");
|
||||
|
|
|
|||
|
|
@ -1699,6 +1699,7 @@ int __init msm_pcm_voip_init(void)
|
|||
void msm_pcm_voip_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&msm_pcm_driver);
|
||||
mutex_destroy(&voip_info.lock);
|
||||
}
|
||||
|
||||
MODULE_DESCRIPTION("PCM module platform driver");
|
||||
|
|
|
|||
Loading…
Reference in a new issue