projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3743544
)
[ALSA] fix private data pointer calculation in CS4270 driver
author
Timur Tabi
<timur@freescale.com>
Wed, 14 Nov 2007 11:07:58 +0000
(12:07 +0100)
committer
Mercurial server
<hg@alsa0.alsa-project.org>
Tue, 20 Nov 2007 18:52:37 +0000
(19:52 +0100)
Fix the calculation of the private_data pointer in the CS4270 driver.
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/soc/codecs/cs4270.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cs4270.c
b/sound/soc/codecs/cs4270.c
index 5d601ad6da705d51700d3e4a67e9ebb9df4c990f..abac62866da80e2db722d6ddb7937119a7124caa 100644
(file)
--- a/
sound/soc/codecs/cs4270.c
+++ b/
sound/soc/codecs/cs4270.c
@@
-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;