aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-06-17 12:20:15 -0400
committerMark Brown <broonie@linaro.org>2013-06-17 12:20:15 -0400
commit06b753d6fd139acf37f4f99c2cfffc2e74841a7c (patch)
tree5e336c12eb4f3005a6b517d972fae7fe58038420 /drivers/misc
parent9912b30f95e22d5722abc225c1c3784a51643aef (diff)
parent6f0d94790efe9f4481bbd7c174ef0e9b5e5db7c4 (diff)
Merge remote-tracking branch 'asoc/topic/atmel' into asoc-next
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/atmel-ssc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
index 1abd5ad59925..f7b90661e321 100644
--- a/drivers/misc/atmel-ssc.c
+++ b/drivers/misc/atmel-ssc.c
@@ -58,7 +58,7 @@ struct ssc_device *ssc_request(unsigned int ssc_num)
58 ssc->user++; 58 ssc->user++;
59 spin_unlock(&user_lock); 59 spin_unlock(&user_lock);
60 60
61 clk_enable(ssc->clk); 61 clk_prepare_enable(ssc->clk);
62 62
63 return ssc; 63 return ssc;
64} 64}
@@ -69,7 +69,7 @@ void ssc_free(struct ssc_device *ssc)
69 spin_lock(&user_lock); 69 spin_lock(&user_lock);
70 if (ssc->user) { 70 if (ssc->user) {
71 ssc->user--; 71 ssc->user--;
72 clk_disable(ssc->clk); 72 clk_disable_unprepare(ssc->clk);
73 } else { 73 } else {
74 dev_dbg(&ssc->pdev->dev, "device already free\n"); 74 dev_dbg(&ssc->pdev->dev, "device already free\n");
75 } 75 }
@@ -167,10 +167,10 @@ static int ssc_probe(struct platform_device *pdev)
167 } 167 }
168 168
169 /* disable all interrupts */ 169 /* disable all interrupts */
170 clk_enable(ssc->clk); 170 clk_prepare_enable(ssc->clk);
171 ssc_writel(ssc->regs, IDR, -1); 171 ssc_writel(ssc->regs, IDR, -1);
172 ssc_readl(ssc->regs, SR); 172 ssc_readl(ssc->regs, SR);
173 clk_disable(ssc->clk); 173 clk_disable_unprepare(ssc->clk);
174 174
175 ssc->irq = platform_get_irq(pdev, 0); 175 ssc->irq = platform_get_irq(pdev, 0);
176 if (!ssc->irq) { 176 if (!ssc->irq) {