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:
ff39dbe
)
ASoC: Set sgtl5000->ldo in ldo_regulator_register
author
Axel Lin
<
[email protected]
>
Thu, 20 Oct 2011 10:32:59 +0000
(18:32 +0800)
committer
Mark Brown
<
[email protected]
>
Fri, 21 Oct 2011 08:55:43 +0000
(09:55 +0100)
Otherwise calling ldo_regulator_remove() does not unregister regulator
and free memories.
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Wolfram Sang <
[email protected]
>
Acked-by: Liam Girdwood <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/sgtl5000.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/sgtl5000.c
b/sound/soc/codecs/sgtl5000.c
index 3637a62ddeb425ed3414230936df60bef9808a6d..83950022b96ebef9e219ff73b5c37d7a263a8e33 100644
(file)
--- a/
sound/soc/codecs/sgtl5000.c
+++ b/
sound/soc/codecs/sgtl5000.c
@@
-806,6
+806,7
@@
static int ldo_regulator_register(struct snd_soc_codec *codec,
int voltage)
{
struct ldo_regulator *ldo;
+ struct sgtl5000_priv *sgtl5000 = snd_soc_codec_get_drvdata(codec);
ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL);
@@
-840,6
+841,7
@@
static int ldo_regulator_register(struct snd_soc_codec *codec,
return ret;
}
+ sgtl5000->ldo = ldo;
return 0;
}