aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisael Lopez Cruz <misael.lopez@ti.com>2011-11-01 15:38:42 -0500
committerZiyann <jaraidaniel@gmail.com>2014-10-01 12:56:12 +0200
commitd914e6c0920ed8ab834a5d58c7441c36bf98c417 (patch)
tree04b30d17f33c1e17a5cd1854a6881b000ce8792e
parentd962341b0c4c1c4735fa1210bfef85b050cc1ff5 (diff)
downloadkernel_samsung_tuna-d914e6c0920ed8ab834a5d58c7441c36bf98c417.zip
kernel_samsung_tuna-d914e6c0920ed8ab834a5d58c7441c36bf98c417.tar.gz
kernel_samsung_tuna-d914e6c0920ed8ab834a5d58c7441c36bf98c417.tar.bz2
ASoC: McPDM: Remove extra CTRL register clear
Reset value of MCPDM_CTRL is 0, so there is no need to do an extra clear write during McPDM DAIs probe(). One important advantage of removing this extra register access is that it removes the dependency on the McPDM clock which is supplied externally. Change-Id: I8bcad0494cc389523172b0f9ae5834e0f0f96326 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r--sound/soc/omap/omap-mcpdm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c
index 77be09f..62f23b2 100644
--- a/sound/soc/omap/omap-mcpdm.c
+++ b/sound/soc/omap/omap-mcpdm.c
@@ -659,16 +659,11 @@ static int omap_mcpdm_probe(struct snd_soc_dai *dai)
pm_runtime_enable(mcpdm->dev);
- /* Disable lines while request is ongoing */
- pm_runtime_get_sync(mcpdm->dev);
- omap_mcpdm_write(mcpdm, MCPDM_CTRL, 0x00);
-
ret = request_irq(mcpdm->irq, omap_mcpdm_irq_handler,
0, "McPDM", (void *)mcpdm);
if (ret)
dev_err(mcpdm->dev, "Request for McPDM IRQ failed\n");
- pm_runtime_put_sync(mcpdm->dev);
return ret;
}