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:
f4a75d2
)
ASoC: wm8510: remove invalid free of devm_ allocated data
author
Tushar Behera
<tushar.behera@linaro.org>
Thu, 22 Nov 2012 04:08:33 +0000
(09:38 +0530)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Fri, 23 Nov 2012 14:28:45 +0000
(23:28 +0900)
Fixes following warning.
sound/soc/codecs/wm8510.c:614:1-6: WARNING: invalid free of devm_ allocated data
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8510.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8510.c
b/sound/soc/codecs/wm8510.c
index c12a54e72e891d071a51e2c4d069c006c6a9ff18..923e7e1f670422057e140841665949bc66a68c0d 100644
(file)
--- a/
sound/soc/codecs/wm8510.c
+++ b/
sound/soc/codecs/wm8510.c
@@
-608,10
+608,7
@@
static int wm8510_probe(struct snd_soc_codec *codec)
/* power down chip */
static int wm8510_remove(struct snd_soc_codec *codec)
{
- struct wm8510_priv *wm8510 = snd_soc_codec_get_drvdata(codec);
-
wm8510_set_bias_level(codec, SND_SOC_BIAS_OFF);
- kfree(wm8510);
return 0;
}