mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 16:38:12 +00:00
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>
This commit is contained in:
parent
7435d4eec7
commit
d95e933730
1 changed files with 3 additions and 3 deletions
|
@ -2404,12 +2404,12 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec)
|
|||
|
||||
dev_dbg(dev, "%s: Enter.\n", __func__);
|
||||
|
||||
/* Setup AB8500 according to board-settings */
|
||||
pdata = (struct ab8500_platform_data *)dev_get_platdata(dev->parent);
|
||||
|
||||
/* Inform SoC Core that we have our own I/O arrangements. */
|
||||
codec->control_data = (void *)true;
|
||||
|
||||
/* Setup AB8500 according to board-settings */
|
||||
pdata = dev_get_platdata(dev->parent);
|
||||
|
||||
status = ab8500_audio_setup_mics(codec, &pdata->codec->amics);
|
||||
if (status < 0) {
|
||||
pr_err("%s: Failed to setup mics (%d)!\n", __func__, status);
|
||||
|
|
Loading…
Reference in a new issue