From: Mark Brown Date: Sat, 3 Dec 2011 20:20:02 +0000 (+0000) Subject: ASoC: Use core pm_runtime callbacks for omap-dmic X-Git-Tag: v3.12-rc1~3017^2~280 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06d07b6b1cf46ad1bfd15ab1ba84c0d7ee6dab31;p=kernel%2Fkernel-generic.git ASoC: Use core pm_runtime callbacks for omap-dmic Now that the core holds a pm_runtime reference to the device while the link is active there is no need for the driver to do so. Signed-off-by: Mark Brown Acked-by: Peter Ujfalusi --- diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c index 9c73c0c..0855c1c 100644 --- a/sound/soc/omap/omap-dmic.c +++ b/sound/soc/omap/omap-dmic.c @@ -114,7 +114,6 @@ static int omap_dmic_dai_startup(struct snd_pcm_substream *substream, mutex_lock(&dmic->mutex); if (!dai->active) { - pm_runtime_get_sync(dmic->dev); snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24); dmic->active = 1; } else { @@ -133,10 +132,8 @@ static void omap_dmic_dai_shutdown(struct snd_pcm_substream *substream, mutex_lock(&dmic->mutex); - if (!dai->active) { - pm_runtime_put_sync(dmic->dev); + if (!dai->active) dmic->active = 0; - } mutex_unlock(&dmic->mutex); }