Commit 3f09e6c0 authored by Viresh Kumar's avatar Viresh Kumar Committed by Jeff Garzik

pata_arasan: Add clk_{un}prepare() support

clk_{un}prepare is mandatory for platforms using common clock framework. Since
this driver is used by SPEAr platform, which supports common clock framework,
add clk_{un}prepare() support for it.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 8996b89d
...@@ -310,7 +310,7 @@ static int cf_init(struct arasan_cf_dev *acdev) ...@@ -310,7 +310,7 @@ static int cf_init(struct arasan_cf_dev *acdev)
unsigned long flags; unsigned long flags;
int ret = 0; int ret = 0;
ret = clk_enable(acdev->clk); ret = clk_prepare_enable(acdev->clk);
if (ret) { if (ret) {
dev_dbg(acdev->host->dev, "clock enable failed"); dev_dbg(acdev->host->dev, "clock enable failed");
return ret; return ret;
...@@ -340,7 +340,7 @@ static void cf_exit(struct arasan_cf_dev *acdev) ...@@ -340,7 +340,7 @@ static void cf_exit(struct arasan_cf_dev *acdev)
writel(readl(acdev->vbase + OP_MODE) & ~CFHOST_ENB, writel(readl(acdev->vbase + OP_MODE) & ~CFHOST_ENB,
acdev->vbase + OP_MODE); acdev->vbase + OP_MODE);
spin_unlock_irqrestore(&acdev->host->lock, flags); spin_unlock_irqrestore(&acdev->host->lock, flags);
clk_disable(acdev->clk); clk_disable_unprepare(acdev->clk);
} }
static void dma_callback(void *dev) static void dma_callback(void *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment