ASoC: Remove warnings in ep93xx-i2s.c
authorAlexander Sverdlin <subaparts@yandex.ru>
Mon, 7 Mar 2011 17:29:58 +0000 (20:29 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 7 Mar 2011 17:32:02 +0000 (17:32 +0000)
Remove warnings in ep93xx-i2s.c

Signed-off-by: Alexander Sverdlin <subaparts@yandex.ru>
Acked-by: Ryan Mallon <ryan@bluewatersys.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/ep93xx/ep93xx-i2s.c

index fff579a1c1344974332e055b7ef5b1eec225552c..4d3c1389d3da327c97bf4d7a95072ae0bec6169e 100644 (file)
@@ -314,10 +314,12 @@ static int ep93xx_i2s_suspend(struct snd_soc_dai *dai)
        struct ep93xx_i2s_info *info = snd_soc_dai_get_drvdata(dai);
 
        if (!dai->active)
-               return;
+               return 0;
 
        ep93xx_i2s_disable(info, SNDRV_PCM_STREAM_PLAYBACK);
        ep93xx_i2s_disable(info, SNDRV_PCM_STREAM_CAPTURE);
+
+       return 0;
 }
 
 static int ep93xx_i2s_resume(struct snd_soc_dai *dai)
@@ -325,10 +327,12 @@ static int ep93xx_i2s_resume(struct snd_soc_dai *dai)
        struct ep93xx_i2s_info *info = snd_soc_dai_get_drvdata(dai);
 
        if (!dai->active)
-               return;
+               return 0;
 
        ep93xx_i2s_enable(info, SNDRV_PCM_STREAM_PLAYBACK);
        ep93xx_i2s_enable(info, SNDRV_PCM_STREAM_CAPTURE);
+
+       return 0;
 }
 #else
 #define ep93xx_i2s_suspend     NULL