diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-03-11 00:43:20 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-11 05:59:05 -0400 |
commit | 5d6be5aa6becc750c5c2aa0ef8f7209ce19aa328 (patch) | |
tree | 332783c28f3fe037cdaaa86f9b30072904be6ddd /sound/soc/codecs/lm49453.c | |
parent | db5a5ee7c7b20a1780f90c6f2b8de322844b6fe9 (diff) |
ASoC: codec: Simplify ASoC probe code.
For some CODEC drivers like who act as the MFDs children are ignored
by this patch.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/lm49453.c')
-rw-r--r-- | sound/soc/codecs/lm49453.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c index e19490cfb3a8..069cb0359932 100644 --- a/sound/soc/codecs/lm49453.c +++ b/sound/soc/codecs/lm49453.c | |||
@@ -1409,22 +1409,6 @@ static int lm49453_resume(struct snd_soc_codec *codec) | |||
1409 | return 0; | 1409 | return 0; |
1410 | } | 1410 | } |
1411 | 1411 | ||
1412 | static int lm49453_probe(struct snd_soc_codec *codec) | ||
1413 | { | ||
1414 | struct lm49453_priv *lm49453 = snd_soc_codec_get_drvdata(codec); | ||
1415 | int ret = 0; | ||
1416 | |||
1417 | codec->control_data = lm49453->regmap; | ||
1418 | |||
1419 | ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_REGMAP); | ||
1420 | if (ret < 0) { | ||
1421 | dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); | ||
1422 | return ret; | ||
1423 | } | ||
1424 | |||
1425 | return 0; | ||
1426 | } | ||
1427 | |||
1428 | /* power down chip */ | 1412 | /* power down chip */ |
1429 | static int lm49453_remove(struct snd_soc_codec *codec) | 1413 | static int lm49453_remove(struct snd_soc_codec *codec) |
1430 | { | 1414 | { |
@@ -1433,7 +1417,6 @@ static int lm49453_remove(struct snd_soc_codec *codec) | |||
1433 | } | 1417 | } |
1434 | 1418 | ||
1435 | static struct snd_soc_codec_driver soc_codec_dev_lm49453 = { | 1419 | static struct snd_soc_codec_driver soc_codec_dev_lm49453 = { |
1436 | .probe = lm49453_probe, | ||
1437 | .remove = lm49453_remove, | 1420 | .remove = lm49453_remove, |
1438 | .suspend = lm49453_suspend, | 1421 | .suspend = lm49453_suspend, |
1439 | .resume = lm49453_resume, | 1422 | .resume = lm49453_resume, |