| From 8ed88c1062c61083442b13d3a30c68594fe8e8bb Mon Sep 17 00:00:00 2001 |
| From: Mark Brown <broonie@opensource.wolfsonmicro.com> |
| Date: Sat, 3 Dec 2011 20:22:18 +0000 |
| Subject: ASoC: Use core pm_runtime callbacks for fsi |
| |
| 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 <broonie@opensource.wolfsonmicro.com> |
| (cherry picked from commit 27f478a65ff7b67b843250f0a2d1e8b306bf57b6) |
| |
| Signed-off-by: Simon Horman <horms@verge.net.au> |
| --- |
| sound/soc/sh/fsi.c | 4 ---- |
| 1 file changed, 4 deletions(-) |
| |
| diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c |
| index a27c306..db6c89a 100644 |
| --- a/sound/soc/sh/fsi.c |
| +++ b/sound/soc/sh/fsi.c |
| @@ -893,8 +893,6 @@ static int fsi_hw_startup(struct fsi_priv *fsi, |
| u32 flags = fsi_get_info_flags(fsi); |
| u32 data = 0; |
| |
| - pm_runtime_get_sync(dev); |
| - |
| /* clock setting */ |
| if (fsi_is_clk_master(fsi)) |
| data = DIMD | DOMD; |
| @@ -951,8 +949,6 @@ static void fsi_hw_shutdown(struct fsi_priv *fsi, |
| { |
| if (fsi_is_clk_master(fsi)) |
| fsi_set_master_clk(dev, fsi, fsi->rate, 0); |
| - |
| - pm_runtime_put_sync(dev); |
| } |
| |
| static int fsi_dai_startup(struct snd_pcm_substream *substream, |
| -- |
| 1.7.10.2.565.gbd578b5 |
| |