Skip to content

Commit

Permalink
ASoC: Use core pm_runtime callbacks for fsi
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Dec 14, 2011
1 parent 20e757f commit 27f478a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/soc/sh/fsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 27f478a

Please sign in to comment.