Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fed8cf26 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: destroy mutex during module_exit"

parents 6f35442a 1a2ec5b3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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");
+5 −0
Original line number Diff line number Diff line
@@ -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");
+1 −0
Original line number Diff line number Diff line
@@ -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");