mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08:00
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: Viresh Kumar <viresh.kumar@linaro.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
8996b89d6b
commit
3f09e6c0d3
@ -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;
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user