platform-drivers: msm: sps: fix spinlock bug
add init for spinlock.
Signed-off-by: Yan He <yanhe@codeaurora.org>
diff --git a/drivers/platform/msm/sps/sps_bam.c b/drivers/platform/msm/sps/sps_bam.c
index 8fbf4f9..14c6e5b 100644
--- a/drivers/platform/msm/sps/sps_bam.c
+++ b/drivers/platform/msm/sps/sps_bam.c
@@ -443,6 +443,8 @@
spin_lock_init(&dev->isr_lock);
+ spin_lock_init(&dev->connection_lock);
+
if ((dev->props.options & SPS_BAM_OPT_ENABLE_AT_BOOT))
if (sps_bam_enable(dev))
return SPS_ERROR;