diff options
author | Tushar Behera <tushar.b@samsung.com> | 2014-07-04 05:12:17 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-04 15:30:27 -0400 |
commit | eba843201a8e5824c5e6e539db6cd1a6ba84f145 (patch) | |
tree | 1f68a4072dcc4a57884f91de88af0f1dd3ee3a57 | |
parent | 978b641f9563019a24032d5dee8a75963cd248ff (diff) |
ASoC: max98090: Remove redundant max98090_handle_pdata()
max98090_handle_pdata() is not doing anything other than printing
a message if pdata is not valid. This can be removed.
Signed-off-by: Tushar Behera <tushar.b@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/codecs/max98090.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 2c2c5b22f60f..0e59e5117e43 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c | |||
@@ -2200,17 +2200,6 @@ static struct snd_soc_dai_driver max98090_dai[] = { | |||
2200 | } | 2200 | } |
2201 | }; | 2201 | }; |
2202 | 2202 | ||
2203 | static void max98090_handle_pdata(struct snd_soc_codec *codec) | ||
2204 | { | ||
2205 | struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec); | ||
2206 | struct max98090_pdata *pdata = max98090->pdata; | ||
2207 | |||
2208 | if (!pdata) { | ||
2209 | dev_err(codec->dev, "No platform data\n"); | ||
2210 | return; | ||
2211 | } | ||
2212 | } | ||
2213 | |||
2214 | static int max98090_probe(struct snd_soc_codec *codec) | 2203 | static int max98090_probe(struct snd_soc_codec *codec) |
2215 | { | 2204 | { |
2216 | struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec); | 2205 | struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec); |
@@ -2310,8 +2299,6 @@ static int max98090_probe(struct snd_soc_codec *codec) | |||
2310 | snd_soc_update_bits(codec, M98090_REG_MIC_BIAS_VOLTAGE, | 2299 | snd_soc_update_bits(codec, M98090_REG_MIC_BIAS_VOLTAGE, |
2311 | M98090_MBVSEL_MASK, M98090_MBVSEL_2V8); | 2300 | M98090_MBVSEL_MASK, M98090_MBVSEL_2V8); |
2312 | 2301 | ||
2313 | max98090_handle_pdata(codec); | ||
2314 | |||
2315 | max98090_add_widgets(codec); | 2302 | max98090_add_widgets(codec); |
2316 | 2303 | ||
2317 | err_access: | 2304 | err_access: |