diff options
Diffstat (limited to 'sound/soc/codecs/wm8955.c')
-rw-r--r-- | sound/soc/codecs/wm8955.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c index 3c7198779c31..924548182d58 100644 --- a/sound/soc/codecs/wm8955.c +++ b/sound/soc/codecs/wm8955.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
17 | #include <linux/pm.h> | 17 | #include <linux/pm.h> |
18 | #include <linux/i2c.h> | 18 | #include <linux/i2c.h> |
19 | #include <linux/platform_device.h> | ||
20 | #include <linux/regulator/consumer.h> | 19 | #include <linux/regulator/consumer.h> |
21 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
22 | #include <sound/core.h> | 21 | #include <sound/core.h> |
@@ -859,7 +858,7 @@ static int wm8955_set_bias_level(struct snd_soc_codec *codec, | |||
859 | #define WM8955_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ | 858 | #define WM8955_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ |
860 | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) | 859 | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) |
861 | 860 | ||
862 | static struct snd_soc_dai_ops wm8955_dai_ops = { | 861 | static const struct snd_soc_dai_ops wm8955_dai_ops = { |
863 | .set_sysclk = wm8955_set_sysclk, | 862 | .set_sysclk = wm8955_set_sysclk, |
864 | .set_fmt = wm8955_set_fmt, | 863 | .set_fmt = wm8955_set_fmt, |
865 | .hw_params = wm8955_hw_params, | 864 | .hw_params = wm8955_hw_params, |
@@ -879,7 +878,7 @@ static struct snd_soc_dai_driver wm8955_dai = { | |||
879 | }; | 878 | }; |
880 | 879 | ||
881 | #ifdef CONFIG_PM | 880 | #ifdef CONFIG_PM |
882 | static int wm8955_suspend(struct snd_soc_codec *codec, pm_message_t state) | 881 | static int wm8955_suspend(struct snd_soc_codec *codec) |
883 | { | 882 | { |
884 | wm8955_set_bias_level(codec, SND_SOC_BIAS_OFF); | 883 | wm8955_set_bias_level(codec, SND_SOC_BIAS_OFF); |
885 | 884 | ||
@@ -1038,7 +1037,7 @@ MODULE_DEVICE_TABLE(i2c, wm8955_i2c_id); | |||
1038 | 1037 | ||
1039 | static struct i2c_driver wm8955_i2c_driver = { | 1038 | static struct i2c_driver wm8955_i2c_driver = { |
1040 | .driver = { | 1039 | .driver = { |
1041 | .name = "wm8955-codec", | 1040 | .name = "wm8955", |
1042 | .owner = THIS_MODULE, | 1041 | .owner = THIS_MODULE, |
1043 | }, | 1042 | }, |
1044 | .probe = wm8955_i2c_probe, | 1043 | .probe = wm8955_i2c_probe, |