]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/arm/pxa2xx-ac97-lib.c
Merge remote-tracking branches 'asoc/topic/sigmadsp', 'asoc/topic/sirf', 'asoc/topic...
[karo-tx-linux.git] / sound / arm / pxa2xx-ac97-lib.c
index 99a466822a7d9eb3d73dd56da74911c3cb3d0173..39c3969ac1c7fc7d6b977fc3d65cb995ba208aee 100644 (file)
@@ -152,9 +152,9 @@ static inline void pxa_ac97_cold_pxa27x(void)
        gsr_bits = 0;
 
        /* PXA27x Developers Manual section 13.5.2.2.1 */
-       clk_enable(ac97conf_clk);
+       clk_prepare_enable(ac97conf_clk);
        udelay(5);
-       clk_disable(ac97conf_clk);
+       clk_disable_unprepare(ac97conf_clk);
        GCR = GCR_COLD_RST | GCR_WARM_RST;
 }
 #endif
@@ -208,7 +208,7 @@ bool pxa2xx_ac97_try_warm_reset(struct snd_ac97 *ac97)
                pxa_ac97_warm_pxa3xx();
        else
 #endif
-               BUG();
+               snd_BUG();
 
        while (!((GSR | gsr_bits) & (GSR_PCR | GSR_SCR)) && timeout--)
                mdelay(1);
@@ -245,7 +245,7 @@ bool pxa2xx_ac97_try_cold_reset(struct snd_ac97 *ac97)
                pxa_ac97_cold_pxa3xx();
        else
 #endif
-               BUG();
+               snd_BUG();
 
        while (!((GSR | gsr_bits) & (GSR_PCR | GSR_SCR)) && timeout--)
                mdelay(1);
@@ -299,14 +299,14 @@ static irqreturn_t pxa2xx_ac97_irq(int irq, void *dev_id)
 int pxa2xx_ac97_hw_suspend(void)
 {
        GCR |= GCR_ACLINK_OFF;
-       clk_disable(ac97_clk);
+       clk_disable_unprepare(ac97_clk);
        return 0;
 }
 EXPORT_SYMBOL_GPL(pxa2xx_ac97_hw_suspend);
 
 int pxa2xx_ac97_hw_resume(void)
 {
-       clk_enable(ac97_clk);
+       clk_prepare_enable(ac97_clk);
        return 0;
 }
 EXPORT_SYMBOL_GPL(pxa2xx_ac97_hw_resume);
@@ -368,7 +368,7 @@ int pxa2xx_ac97_hw_probe(struct platform_device *dev)
                goto err_clk;
        }
 
-       ret = clk_enable(ac97_clk);
+       ret = clk_prepare_enable(ac97_clk);
        if (ret)
                goto err_clk2;
 
@@ -403,7 +403,7 @@ void pxa2xx_ac97_hw_remove(struct platform_device *dev)
                clk_put(ac97conf_clk);
                ac97conf_clk = NULL;
        }
-       clk_disable(ac97_clk);
+       clk_disable_unprepare(ac97_clk);
        clk_put(ac97_clk);
        ac97_clk = NULL;
 }