aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ab8500-codec.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-26 10:25:48 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-03 18:03:57 -0400
commitd95e933730b3eb7b06bd778dc1d8f0ab3702b607 (patch)
tree864c837747454ccca0c07fbe15fd03ae31df6dfd /sound/soc/codecs/ab8500-codec.c
parent7435d4eec76ee9debffb070f3e0d67615a828673 (diff)
ASoC: ab8500: Remove pointless cast
There's never any need to cast away from void. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'sound/soc/codecs/ab8500-codec.c')
-rw-r--r--sound/soc/codecs/ab8500-codec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/ab8500-codec.c b/sound/soc/codecs/ab8500-codec.c
index 23b40186f9b8..b7836503dc69 100644
--- a/sound/soc/codecs/ab8500-codec.c
+++ b/sound/soc/codecs/ab8500-codec.c
@@ -2404,12 +2404,12 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec)
2404 2404
2405 dev_dbg(dev, "%s: Enter.\n", __func__); 2405 dev_dbg(dev, "%s: Enter.\n", __func__);
2406 2406
2407 /* Setup AB8500 according to board-settings */
2408 pdata = (struct ab8500_platform_data *)dev_get_platdata(dev->parent);
2409
2410 /* Inform SoC Core that we have our own I/O arrangements. */ 2407 /* Inform SoC Core that we have our own I/O arrangements. */
2411 codec->control_data = (void *)true; 2408 codec->control_data = (void *)true;
2412 2409
2410 /* Setup AB8500 according to board-settings */
2411 pdata = dev_get_platdata(dev->parent);
2412
2413 status = ab8500_audio_setup_mics(codec, &pdata->codec->amics); 2413 status = ab8500_audio_setup_mics(codec, &pdata->codec->amics);
2414 if (status < 0) { 2414 if (status < 0) {
2415 pr_err("%s: Failed to setup mics (%d)!\n", __func__, status); 2415 pr_err("%s: Failed to setup mics (%d)!\n", __func__, status);