ASoC: sta32x: set ->component pointer in private struct
[linux-2.6-block.git] / sound / soc / codecs / sta32x.c
index d5035f2f2b2ba727329570003d7d13a3c42d93d4..ce508b4cc85c9165012e13d821a3ded2dbfe903b 100644 (file)
@@ -879,6 +879,9 @@ static int sta32x_probe(struct snd_soc_component *component)
        struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component);
        struct sta32x_platform_data *pdata = sta32x->pdata;
        int i, ret = 0, thermal = 0;
+
+       sta32x->component = component;
+
        ret = regulator_bulk_enable(ARRAY_SIZE(sta32x->supplies),
                                    sta32x->supplies);
        if (ret != 0) {