Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4df20535 authored by Timur Tabi's avatar Timur Tabi Committed by Mercurial server
Browse files

[ALSA] fix private data pointer calculation in CS4270 driver



Fix the calculation of the private_data pointer in the CS4270 driver.

Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 37435446
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -725,7 +725,8 @@ static int cs4270_probe(struct platform_device *pdev)
	codec->owner = THIS_MODULE;
	codec->dai = &cs4270_dai;
	codec->num_dai = 1;
	codec->private_data = codec + ALIGN(sizeof(struct snd_soc_codec), 4);
	codec->private_data = (void *) codec +
		ALIGN(sizeof(struct snd_soc_codec), 4);

	socdev->codec = codec;