projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ASoC: Push the codec runtime storage into the card structure
[deliverable/linux.git]
/
sound
/
soc
/
codecs
/
ad1980.c
diff --git
a/sound/soc/codecs/ad1980.c
b/sound/soc/codecs/ad1980.c
index faf358758e13215f78dbea021509c30b66b71c7f..ddb3b08ac23c441dd93112295a7182881c856041 100644
(file)
--- a/
sound/soc/codecs/ad1980.c
+++ b/
sound/soc/codecs/ad1980.c
@@
-186,10
+186,10
@@
static int ad1980_soc_probe(struct platform_device *pdev)
printk(KERN_INFO "AD1980 SoC Audio Codec\n");
printk(KERN_INFO "AD1980 SoC Audio Codec\n");
- socdev->codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);
- if (socdev->codec == NULL)
+ socdev->c
ard->c
odec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);
+ if (socdev->c
ard->c
odec == NULL)
return -ENOMEM;
return -ENOMEM;
- codec = socdev->codec;
+ codec = socdev->c
ard->c
odec;
mutex_init(&codec->mutex);
codec->reg_cache =
mutex_init(&codec->mutex);
codec->reg_cache =
@@
-275,15
+275,15
@@
codec_err:
kfree(codec->reg_cache);
cache_err:
kfree(codec->reg_cache);
cache_err:
- kfree(socdev->codec);
- socdev->codec = NULL;
+ kfree(socdev->c
ard->c
odec);
+ socdev->c
ard->c
odec = NULL;
return ret;
}
static int ad1980_soc_remove(struct platform_device *pdev)
{
struct snd_soc_device *socdev = platform_get_drvdata(pdev);
return ret;
}
static int ad1980_soc_remove(struct platform_device *pdev)
{
struct snd_soc_device *socdev = platform_get_drvdata(pdev);
- struct snd_soc_codec *codec = socdev->codec;
+ struct snd_soc_codec *codec = socdev->c
ard->c
odec;
if (codec == NULL)
return 0;
if (codec == NULL)
return 0;
This page took
0.035588 seconds
and
5
git commands to generate.