ASoC: fsl_esai: Don't use devm_regmap_init_mmio_clk
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 24 Mar 2021 09:58:43 +0000 (17:58 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 24 Mar 2021 19:49:28 +0000 (19:49 +0000)
commit203773e39347922b3923df6094324d430664466e
tree3b7014aa6afa04fa382f25837635f4336af05b70
parentf89c0a87b4066fbb0dc6f8039b211bd79a9ab663
ASoC: fsl_esai: Don't use devm_regmap_init_mmio_clk

When there is power domain bind with bus 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-2-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_esai.c