ASoC: sh: hac: add missing "int ret"
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 24 Jul 2017 06:47:59 +0000 (06:47 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jul 2017 12:06:53 +0000 (13:06 +0100)
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>
sound/soc/sh/hac.c

index 84c51037a7d07a5771c0510a412a4f7e5a3ae84b..624aaf569feff86a042056a15da5a7557636fae9 100644 (file)
@@ -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);
        if (ret != 0)
                return ret;
        ret = snd_soc_set_ac97_ops(&hac_ac97_ops);
        if (ret != 0)
                return ret;