asoc: rt5640 codec: Fix compilation warnigs
[linux-2.6.git] / 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);