diff options
author | Ian Molton <ian@mnementh.co.uk> | 2009-01-17 12:44:23 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-01-19 11:23:13 -0500 |
commit | 91432e976ff1323e5dd6f52498969602953c6ee9 (patch) | |
tree | e18da7346b857e384a78ecc3368e5c65652ef1b5 /sound/soc/codecs/ac97.c | |
parent | 28796eaf806502b9bd86cbacf8edbc14c80c14b0 (diff) |
ASoC: fixes to caching implementations
This patch takes fixes a number of bugs in the caching code used by
several ASoC codec drivers. Mostly off-by-one fixes.
Signed-off-by: Ian Molton <ian@mnementh.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/ac97.c')
-rw-r--r-- | sound/soc/codecs/ac97.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c index fb53e6511af2..89d41277616d 100644 --- a/sound/soc/codecs/ac97.c +++ b/sound/soc/codecs/ac97.c | |||
@@ -123,7 +123,6 @@ bus_err: | |||
123 | snd_soc_free_pcms(socdev); | 123 | snd_soc_free_pcms(socdev); |
124 | 124 | ||
125 | err: | 125 | err: |
126 | kfree(socdev->codec->reg_cache); | ||
127 | kfree(socdev->codec); | 126 | kfree(socdev->codec); |
128 | socdev->codec = NULL; | 127 | socdev->codec = NULL; |
129 | return ret; | 128 | return ret; |
@@ -138,7 +137,6 @@ static int ac97_soc_remove(struct platform_device *pdev) | |||
138 | return 0; | 137 | return 0; |
139 | 138 | ||
140 | snd_soc_free_pcms(socdev); | 139 | snd_soc_free_pcms(socdev); |
141 | kfree(socdev->codec->reg_cache); | ||
142 | kfree(socdev->codec); | 140 | kfree(socdev->codec); |
143 | 141 | ||
144 | return 0; | 142 | return 0; |