diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-07-24 06:47:59 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-07-24 13:06:53 +0100 |
commit | 295c5ba4c0886b7d55e229218b077fe3510b0ccd (patch) | |
tree | 2796a7ba5a098959a17054c2056b2aef8daf04d8 /sound/soc | |
parent | 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff) | |
download | lwn-295c5ba4c0886b7d55e229218b077fe3510b0ccd.tar.gz lwn-295c5ba4c0886b7d55e229218b077fe3510b0ccd.zip |
ASoC: sh: hac: add missing "int ret"
commit b047e1cce8 ("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>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/sh/hac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/sh/hac.c b/sound/soc/sh/hac.c index 84c51037a7d0..624aaf569fef 100644 --- a/sound/soc/sh/hac.c +++ b/sound/soc/sh/hac.c @@ -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; |