summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiena Richard <sienar@codeaurora.org>2017-01-23 14:18:02 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-21 12:53:49 -0800
commit125e65934586b0cbfa66c363472e88d8f6ef0836 (patch)
treea3cb6ef09fce4a5b29cbd717ffd97fa157db35fa
parentc4b8f7345591598bccc856150c65d787e894c039 (diff)
ASoC: msm: qdsp6v2: destroy routing lock at exit
Destroy the routing lock when the driver exits to ensure all components of the driver are cleaned up correctly. CRs-Fixed: 1115474 Change-Id: Ifd05954707b90f8fc48ca352e08e0ea0589e9c61 Signed-off-by: Siena Richard <sienar@codeaurora.org>
-rw-r--r--sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c
index cfade420c509..b5eb0ec98813 100644
--- a/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c
+++ b/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c
@@ -14668,6 +14668,7 @@ static void __exit msm_soc_routing_platform_exit(void)
{
msm_routing_delete_cal_data();
memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
+ mutex_destroy(&routing_lock);
platform_driver_unregister(&msm_routing_pcm_driver);
}
module_exit(msm_soc_routing_platform_exit);