Comments
Patch
@@ -313,7 +313,7 @@ static int cf_init(struct arasan_cf_dev *acdev)
int ret = 0;
#ifdef CONFIG_HAVE_CLK
- ret = clk_enable(acdev->clk);
+ ret = clk_prepare_enable(acdev->clk);
if (ret) {
dev_dbg(acdev->host->dev, "clock enable failed");
return ret;
@@ -345,7 +345,7 @@ static void cf_exit(struct arasan_cf_dev *acdev)
acdev->vbase + OP_MODE);
spin_unlock_irqrestore(&acdev->host->lock, flags);
#ifdef CONFIG_HAVE_CLK
- clk_disable(acdev->clk);
+ clk_disable_unprepare(acdev->clk);
#endif
}
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@st.com> --- drivers/ata/pata_arasan_cf.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)