diff options
Diffstat (limited to 'sound/soc/codecs/cs42l73.c')
-rw-r--r-- | sound/soc/codecs/cs42l73.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c index 06f429184821..b2906c60254e 100644 --- a/sound/soc/codecs/cs42l73.c +++ b/sound/soc/codecs/cs42l73.c | |||
@@ -1345,17 +1345,8 @@ static int cs42l73_resume(struct snd_soc_codec *codec) | |||
1345 | 1345 | ||
1346 | static int cs42l73_probe(struct snd_soc_codec *codec) | 1346 | static int cs42l73_probe(struct snd_soc_codec *codec) |
1347 | { | 1347 | { |
1348 | int ret; | ||
1349 | struct cs42l73_private *cs42l73 = snd_soc_codec_get_drvdata(codec); | 1348 | struct cs42l73_private *cs42l73 = snd_soc_codec_get_drvdata(codec); |
1350 | 1349 | ||
1351 | codec->control_data = cs42l73->regmap; | ||
1352 | |||
1353 | ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_REGMAP); | ||
1354 | if (ret < 0) { | ||
1355 | dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); | ||
1356 | return ret; | ||
1357 | } | ||
1358 | |||
1359 | cs42l73_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 1350 | cs42l73_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
1360 | 1351 | ||
1361 | /* Set Charge Pump Frequency */ | 1352 | /* Set Charge Pump Frequency */ |
@@ -1368,7 +1359,7 @@ static int cs42l73_probe(struct snd_soc_codec *codec) | |||
1368 | cs42l73->mclksel = CS42L73_CLKID_MCLK1; | 1359 | cs42l73->mclksel = CS42L73_CLKID_MCLK1; |
1369 | cs42l73->mclk = 0; | 1360 | cs42l73->mclk = 0; |
1370 | 1361 | ||
1371 | return ret; | 1362 | return 0; |
1372 | } | 1363 | } |
1373 | 1364 | ||
1374 | static int cs42l73_remove(struct snd_soc_codec *codec) | 1365 | static int cs42l73_remove(struct snd_soc_codec *codec) |