summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorolivier moysan <olivier.moysan@st.com>2017-06-16 14:15:33 +0200
committerMark Brown <broonie@kernel.org>2017-06-16 18:58:57 +0100
commit1c77603136d00368b8cd7c10d1ca4bad5952a136 (patch)
tree5eb82d45fe02061d82f7e71f602e91f9fc167c90
parent4fa17938ea400b6478b24565483f2ac54122316f (diff)
ASoC: stm32: sai: fix clock management
Allow peripheral clock enable/disable on regmap accesses. Signed-off-by: olivier moysan <olivier.moysan@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/stm/stm32_sai_sub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c
index 97b69a3ab46e..2466af0343db 100644
--- a/sound/soc/stm/stm32_sai_sub.c
+++ b/sound/soc/stm/stm32_sai_sub.c
@@ -766,8 +766,8 @@ static int stm32_sai_sub_parse_of(struct platform_device *pdev,
return PTR_ERR(base);
sai->phys_addr = res->start;
- sai->regmap = devm_regmap_init_mmio(&pdev->dev, base,
- &stm32_sai_sub_regmap_config);
+ sai->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "sai_ck", base,
+ &stm32_sai_sub_regmap_config);
/* Get direction property */
if (of_property_match_string(np, "dma-names", "tx") >= 0) {