]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: Use core pm_runtime callbacks for fsi
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 3 Dec 2011 20:22:18 +0000 (20:22 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Dec 2011 18:27:00 +0000 (02:27 +0800)
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>
sound/soc/sh/fsi.c

index a27c30636b824d5d9289e4a4367fe4cf1e23f556..db6c89a28bda9924a8c96b3e4c3ee85fc9482871 100644 (file)
@@ -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,