aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/codecs/sgtl5000.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 3637a62ddeb..83950022b96 100644
--- 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,
806 int voltage) 806 int voltage)
807{ 807{
808 struct ldo_regulator *ldo; 808 struct ldo_regulator *ldo;
809 struct sgtl5000_priv *sgtl5000 = snd_soc_codec_get_drvdata(codec);
809 810
810 ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL); 811 ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL);
811 812
@@ -840,6 +841,7 @@ static int ldo_regulator_register(struct snd_soc_codec *codec,
840 841
841 return ret; 842 return ret;
842 } 843 }
844 sgtl5000->ldo = ldo;
843 845
844 return 0; 846 return 0;
845} 847}