ASoC: fsl_audmix: Don't use devm_regmap_init_mmio_clk
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 24 Mar 2021 09:58:47 +0000 (17:58 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 24 Mar 2021 19:49:31 +0000 (19:49 +0000)
commit3feaba79d8f701a774815483aa0e7f4edb15c880
treef665e2d3c056723ff6f735d90e7cd3ab11a85953
parent069b24f22eb9dba2e0886b40ea3feaa98e3f4f9b
ASoC: fsl_audmix: Don't use devm_regmap_init_mmio_clk

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