提交 27f478a6 编写于 作者: M Mark Brown

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: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 20e757f7
...@@ -893,8 +893,6 @@ static int fsi_hw_startup(struct fsi_priv *fsi, ...@@ -893,8 +893,6 @@ static int fsi_hw_startup(struct fsi_priv *fsi,
u32 flags = fsi_get_info_flags(fsi); u32 flags = fsi_get_info_flags(fsi);
u32 data = 0; u32 data = 0;
pm_runtime_get_sync(dev);
/* clock setting */ /* clock setting */
if (fsi_is_clk_master(fsi)) if (fsi_is_clk_master(fsi))
data = DIMD | DOMD; data = DIMD | DOMD;
...@@ -951,8 +949,6 @@ static void fsi_hw_shutdown(struct fsi_priv *fsi, ...@@ -951,8 +949,6 @@ static void fsi_hw_shutdown(struct fsi_priv *fsi,
{ {
if (fsi_is_clk_master(fsi)) if (fsi_is_clk_master(fsi))
fsi_set_master_clk(dev, fsi, fsi->rate, 0); fsi_set_master_clk(dev, fsi, fsi->rate, 0);
pm_runtime_put_sync(dev);
} }
static int fsi_dai_startup(struct snd_pcm_substream *substream, static int fsi_dai_startup(struct snd_pcm_substream *substream,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册