aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs42l52.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/cs42l52.c')
-rw-r--r--sound/soc/codecs/cs42l52.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c
index 0bac6d5a4ac8..4bd59cea4922 100644
--- a/sound/soc/codecs/cs42l52.c
+++ b/sound/soc/codecs/cs42l52.c
@@ -1115,14 +1115,7 @@ static void cs42l52_free_beep(struct snd_soc_codec *codec)
1115static int cs42l52_probe(struct snd_soc_codec *codec) 1115static int cs42l52_probe(struct snd_soc_codec *codec)
1116{ 1116{
1117 struct cs42l52_private *cs42l52 = snd_soc_codec_get_drvdata(codec); 1117 struct cs42l52_private *cs42l52 = snd_soc_codec_get_drvdata(codec);
1118 int ret;
1119 1118
1120 codec->control_data = cs42l52->regmap;
1121 ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_REGMAP);
1122 if (ret < 0) {
1123 dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
1124 return ret;
1125 }
1126 regcache_cache_only(cs42l52->regmap, true); 1119 regcache_cache_only(cs42l52->regmap, true);
1127 1120
1128 cs42l52_add_mic_controls(codec); 1121 cs42l52_add_mic_controls(codec);
@@ -1134,7 +1127,7 @@ static int cs42l52_probe(struct snd_soc_codec *codec)
1134 cs42l52->sysclk = CS42L52_DEFAULT_CLK; 1127 cs42l52->sysclk = CS42L52_DEFAULT_CLK;
1135 cs42l52->config.format = CS42L52_DEFAULT_FORMAT; 1128 cs42l52->config.format = CS42L52_DEFAULT_FORMAT;
1136 1129
1137 return ret; 1130 return 0;
1138} 1131}
1139 1132
1140static int cs42l52_remove(struct snd_soc_codec *codec) 1133static int cs42l52_remove(struct snd_soc_codec *codec)