summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/mpc5200_dma.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2009-07-02 21:57:25 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-07-03 13:41:47 +0400
commit0827d6ba0b76be398a3c4298afd41f4965d2cdcb (patch)
treee0346a66b752b89381103ee50008d532d207262e /sound/soc/fsl/mpc5200_dma.c
parent07573534b0b030226ee5ab560e53aac7e6c0dd84 (diff)
downloadlinux-0827d6ba0b76be398a3c4298afd41f4965d2cdcb.tar.xz
ASoC: add locking to mpc5200-psc-ac97 driver
AC97 bus register read/write hooks need to provide locking, but the mpc5200-psc-ac97 driver does not. This patch adds a mutex around the register access routines. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Jon Smirl <jonsmirl@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl/mpc5200_dma.c')
-rw-r--r--sound/soc/fsl/mpc5200_dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c
index efec33a1c5bd..f0a2d4071998 100644
--- a/sound/soc/fsl/mpc5200_dma.c
+++ b/sound/soc/fsl/mpc5200_dma.c
@@ -456,6 +456,7 @@ int mpc5200_audio_dma_create(struct of_device *op)
return -ENODEV;
spin_lock_init(&psc_dma->lock);
+ mutex_init(&psc_dma->mutex);
psc_dma->id = be32_to_cpu(*prop);
psc_dma->irq = irq;
psc_dma->psc_regs = regs;