asoc: rt5640 codec: Fix compilation warnigs
Vijay Mali [Fri, 21 Jun 2013 05:07:02 +0000 (10:07 +0530)]
Remove unused variables

Bug 1274537

Change-Id: I9ca17020c101fa56bcb829d9a9fc71b0d78cc96f
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/240866
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/codecs/rt5640.c

index 8f71124..94c1ab1 100644 (file)
@@ -1534,7 +1534,6 @@ static int rt5640_set_dmic1_event(struct snd_soc_dapm_widget *w,
        struct snd_kcontrol *kcontrol, int event)
 {
        struct snd_soc_codec *codec = w->codec;
-       unsigned int val, mask;
        struct rt5640_priv *rt5640 = snd_soc_codec_get_drvdata(codec);
        mutex_lock(&rt5640->lock);
        CHECK_I2C_SHUTDOWN(rt5640, codec)
@@ -1564,7 +1563,6 @@ static int rt5640_set_dmic2_event(struct snd_soc_dapm_widget *w,
        struct snd_kcontrol *kcontrol, int event)
 {
        struct snd_soc_codec *codec = w->codec;
-       unsigned int val, mask;
        struct rt5640_priv *rt5640 = snd_soc_codec_get_drvdata(codec);
        mutex_lock(&rt5640->lock);
        CHECK_I2C_SHUTDOWN(rt5640, codec)
@@ -2831,7 +2829,7 @@ static int rt5640_remove(struct snd_soc_codec *codec)
        return 0;
 }
 #ifdef CONFIG_PM
-static int rt5640_suspend(struct snd_soc_codec *codec, pm_message_t state)
+static int rt5640_suspend(struct snd_soc_codec *codec)
 {
        rt5640_reset(codec);
        rt5640_set_bias_level(codec, SND_SOC_BIAS_OFF);