forked from Minki/linux
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>
This commit is contained in:
parent
4fa17938ea
commit
1c77603136
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user