Commit 1c776031 authored by olivier moysan's avatar olivier moysan Committed by Mark Brown

ASoC: stm32: sai: fix clock management

Allow peripheral clock enable/disable on regmap accesses.
Signed-off-by: default avatarolivier moysan <olivier.moysan@st.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4fa17938
...@@ -766,7 +766,7 @@ static int stm32_sai_sub_parse_of(struct platform_device *pdev, ...@@ -766,7 +766,7 @@ static int stm32_sai_sub_parse_of(struct platform_device *pdev,
return PTR_ERR(base); return PTR_ERR(base);
sai->phys_addr = res->start; sai->phys_addr = res->start;
sai->regmap = devm_regmap_init_mmio(&pdev->dev, base, sai->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "sai_ck", base,
&stm32_sai_sub_regmap_config); &stm32_sai_sub_regmap_config);
/* Get direction property */ /* Get direction property */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment