mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 21:44:06 +08:00
ASoC: dapm: fix clock get name
[ Upstream commit4bdcbc31ad
] The name currently used to get the clock includes the dapm prefix. It should use the name as provided to the widget, without the prefix. Fixes:3caac75968
("ASoC: soc-dapm.c: fixup snd_soc_dapm_new_control_unlocked() error handling") Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://lore.kernel.org/r/20231106103712.703962-1-jbrunet@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f4d32c52d8
commit
8519bbf23c
@ -3670,7 +3670,7 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
|
||||
dapm_pinctrl_event(w, NULL, SND_SOC_DAPM_POST_PMD);
|
||||
break;
|
||||
case snd_soc_dapm_clock_supply:
|
||||
w->clk = devm_clk_get(dapm->dev, w->name);
|
||||
w->clk = devm_clk_get(dapm->dev, widget->name);
|
||||
if (IS_ERR(w->clk)) {
|
||||
ret = PTR_ERR(w->clk);
|
||||
goto request_failed;
|
||||
|
Loading…
Reference in New Issue
Block a user