Skip to content

Commit

Permalink
pata_arasan: Add clk_{un}prepare() support
Browse files Browse the repository at this point in the history
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: Viresh Kumar <viresh.kumar@linaro.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Viresh Kumar authored and Jeff Garzik committed Sep 13, 2012
1 parent 8996b89 commit 3f09e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ata/pata_arasan_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ static int cf_init(struct arasan_cf_dev *acdev)
unsigned long flags;
int ret = 0;

ret = clk_enable(acdev->clk);
ret = clk_prepare_enable(acdev->clk);
if (ret) {
dev_dbg(acdev->host->dev, "clock enable failed");
return ret;
Expand Down Expand Up @@ -340,7 +340,7 @@ static void cf_exit(struct arasan_cf_dev *acdev)
writel(readl(acdev->vbase + OP_MODE) & ~CFHOST_ENB,
acdev->vbase + OP_MODE);
spin_unlock_irqrestore(&acdev->host->lock, flags);
clk_disable(acdev->clk);
clk_disable_unprepare(acdev->clk);
}

static void dma_callback(void *dev)
Expand Down

0 comments on commit 3f09e6c

Please sign in to comment.