提交 295c5ba4 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: sh: hac: add missing "int ret"

commit b047e1cc ("ASoC: ac97: Support multi-platform AC'97")
modified hac_soc_platform_probe(), but "int ret" was missed.
This patch adds missing "int ret", otherwise, we will get

linux/sound/soc/sh/hac.c: In function 'hac_soc_platform_probe':
linux/sound/soc/sh/hac.c:318: error: 'ret' undeclared (first use in this function)
linux/sound/soc/sh/hac.c:318: error: (Each undeclared identifier is reported only once
linux/sound/soc/sh/hac.c:318: error: for each function it appears in.)
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 5771a8c0
...@@ -315,6 +315,8 @@ static const struct snd_soc_component_driver sh4_hac_component = { ...@@ -315,6 +315,8 @@ static const struct snd_soc_component_driver sh4_hac_component = {
static int hac_soc_platform_probe(struct platform_device *pdev) static int hac_soc_platform_probe(struct platform_device *pdev)
{ {
int ret;
ret = snd_soc_set_ac97_ops(&hac_ac97_ops); ret = snd_soc_set_ac97_ops(&hac_ac97_ops);
if (ret != 0) if (ret != 0)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册