diff options
Diffstat (limited to 'sound/soc/codecs/si476x.c')
-rw-r--r-- | sound/soc/codecs/si476x.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/si476x.c b/sound/soc/codecs/si476x.c index fa2b8e07f420..244c097cd905 100644 --- a/sound/soc/codecs/si476x.c +++ b/sound/soc/codecs/si476x.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | #include <sound/pcm.h> | 22 | #include <sound/pcm.h> |
23 | #include <sound/pcm_params.h> | 23 | #include <sound/pcm_params.h> |
24 | #include <linux/regmap.h> | ||
24 | #include <sound/soc.h> | 25 | #include <sound/soc.h> |
25 | #include <sound/initval.h> | 26 | #include <sound/initval.h> |
26 | 27 | ||
@@ -209,8 +210,9 @@ out: | |||
209 | 210 | ||
210 | static int si476x_codec_probe(struct snd_soc_codec *codec) | 211 | static int si476x_codec_probe(struct snd_soc_codec *codec) |
211 | { | 212 | { |
212 | codec->control_data = dev_get_regmap(codec->dev->parent, NULL); | 213 | struct regmap *regmap = dev_get_regmap(codec->dev->parent, NULL); |
213 | return snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP); | 214 | |
215 | return snd_soc_codec_set_cache_io(codec, regmap); | ||
214 | } | 216 | } |
215 | 217 | ||
216 | static struct snd_soc_dai_ops si476x_dai_ops = { | 218 | static struct snd_soc_dai_ops si476x_dai_ops = { |