projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c555b02
)
ASoC:: remove a redundant snd_soc_unregister_codec call in wm8988_register
author
Axel Lin
<axel.lin@gmail.com>
Wed, 14 Jul 2010 11:06:07 +0000
(19:06 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 14 Jul 2010 19:12:31 +0000
(20:12 +0100)
snd_soc_unregister_codec is called twice if snd_soc_register_dai fail.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8988.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm8988.c
b/sound/soc/codecs/wm8988.c
index 0417dae32e6f0e9de4d3b9f580519254a4e04404..19ad590ca0b390065850ce4ab8b0e4e2fd5d841a 100644
(file)
--- a/
sound/soc/codecs/wm8988.c
+++ b/
sound/soc/codecs/wm8988.c
@@
-885,7
+885,6
@@
static int wm8988_register(struct wm8988_priv *wm8988,
ret = snd_soc_register_dai(&wm8988_dai);
if (ret != 0) {
dev_err(codec->dev, "Failed to register DAI: %d\n", ret);
- snd_soc_unregister_codec(codec);
goto err_codec;
}