Skip to content

Commit

Permalink
ASoC: sh: hac: add missing "int ret"
Browse files Browse the repository at this point in the history
commit b047e1c ("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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Jul 24, 2017
1 parent 5771a8c commit 295c5ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/sh/hac.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ static const struct snd_soc_component_driver sh4_hac_component = {

static int hac_soc_platform_probe(struct platform_device *pdev)
{
int ret;

ret = snd_soc_set_ac97_ops(&hac_ac97_ops);
if (ret != 0)
return ret;
Expand Down

0 comments on commit 295c5ba

Please sign in to comment.