]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: omap3pandora: Fix compilation error
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 5 Mar 2013 14:24:16 +0000 (15:24 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 6 Mar 2013 04:47:21 +0000 (12:47 +0800)
Fixes:
sound/soc/omap/omap3pandora.c: In function ‘omap3pandora_dac_event’:
sound/soc/omap/omap3pandora.c:92:19: error: request for member ‘dev’ in something not a structure or union
make[3]: *** [sound/soc/omap/omap3pandora.o] Error 1

Which is introduced by:
dd194b4 ASoC: omap: Check regulator enable for DAC on Pandora

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap3pandora.c

index 10ced9d2e0de635e516e7422229db4cc9f266246..9e46e1d8cb1be813ddaeb92834245980e0c4a446 100644 (file)
@@ -89,7 +89,7 @@ static int omap3pandora_dac_event(struct snd_soc_dapm_widget *w,
        if (SND_SOC_DAPM_EVENT_ON(event)) {
                ret = regulator_enable(omap3pandora_dac_reg);
                if (ret) {
-                       dev_err(w->dapm.dev, "Failed to power DAC: %d\n", ret);
+                       dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret);
                        return ret;
                }
                mdelay(1);