ASoC: dapm: The clock API is even less consistent than thought
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 Jun 2012 09:44:23 +0000 (10:44 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 Jun 2012 09:44:23 +0000 (10:44 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c

index 39e8c2fdf50e7f70a451eaef30c0fc76a8d28287..7365fed1ba74802edff6884d7aaef524727919e3 100644 (file)
@@ -2904,7 +2904,7 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
                }
                break;
        case snd_soc_dapm_clock_supply:
-#ifdef CONFIG_HAVE_CLK
+#ifdef CONFIG_CLKDEV_LOOKUP
                w->clk = devm_clk_get(dapm->dev, w->name);
                if (IS_ERR(w->clk)) {
                        ret = PTR_ERR(w->clk);