ASoC: fsl_spdif: Don't use devm_regmap_init_mmio_clk
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 24 Mar 2021 09:58:44 +0000 (17:58 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 24 Mar 2021 19:49:28 +0000 (19:49 +0000)
commitc2562572467a74fd637d2d22fb773b052512528c
treeaac807296441f3e94c92e97d74f69f37154426b8
parent203773e39347922b3923df6094324d430664466e
ASoC: fsl_spdif: Don't use devm_regmap_init_mmio_clk

When there is power domain bind with core clock,

The call flow:
devm_regmap_init_mmio_clk
   - clk_prepare()
       - clk_pm_runtime_get()

cause the power domain of clock always be enabled after
regmap_init(). which impact the power consumption.

So use devm_regmap_init_mmio instead of
devm_regmap_init_mmio_clk,but explicitly enable
clock when it is used.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1616579928-22428-3-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_spdif.c