ASoC: rsnd: fixup rsnd_dmapp_stop() return value
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 28 Oct 2015 04:31:03 +0000 (04:31 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 10:09:29 +0000 (10:09 +0000)
45a4394d03("ASoC: rsnd: use mod base common method on DMA phase3")
Exchanged "void rsnd_dmapp_stop()" to "int rsnd_dmapp_stop()",
but it returns inverted value. This patch fixup it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c

index fc70e97500ad52a4b2c4e36f9f53822d45934311..9917b985c4030b3c9665226e4a70f1c5dc378327 100644 (file)
@@ -368,11 +368,11 @@ static int rsnd_dmapp_stop(struct rsnd_mod *mod,
 
        for (i = 0; i < 1024; i++) {
                if (0 == rsnd_dmapp_read(dma, PDMACHCR))
-                       return -EIO;
+                       return 0;
                udelay(1);
        }
 
-       return 0;
+       return -EIO;
 }
 
 static int rsnd_dmapp_start(struct rsnd_mod *mod,