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/max9768.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/max9768.c')
-rw-r--r-- | sound/soc/codecs/max9768.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/codecs/max9768.c b/sound/soc/codecs/max9768.c index 31f91560e9f6..ec481fc428c7 100644 --- a/sound/soc/codecs/max9768.c +++ b/sound/soc/codecs/max9768.c | |||
@@ -135,11 +135,6 @@ static int max9768_probe(struct snd_soc_codec *codec) | |||
135 | struct max9768 *max9768 = snd_soc_codec_get_drvdata(codec); | 135 | struct max9768 *max9768 = snd_soc_codec_get_drvdata(codec); |
136 | int ret; | 136 | int ret; |
137 | 137 | ||
138 | codec->control_data = max9768->regmap; | ||
139 | ret = snd_soc_codec_set_cache_io(codec, 2, 6, SND_SOC_REGMAP); | ||
140 | if (ret) | ||
141 | return ret; | ||
142 | |||
143 | if (max9768->flags & MAX9768_FLAG_CLASSIC_PWM) { | 138 | if (max9768->flags & MAX9768_FLAG_CLASSIC_PWM) { |
144 | ret = snd_soc_write(codec, MAX9768_CTRL, MAX9768_CTRL_PWM); | 139 | ret = snd_soc_write(codec, MAX9768_CTRL, MAX9768_CTRL_PWM); |
145 | if (ret) | 140 | if (ret) |