From 5303c0f46c8708fff4148ebcc491f78710356952 Mon Sep 17 00:00:00 2001 From: Ulf Hansson Date: Mon, 9 Dec 2013 10:40:22 +0100 Subject: ARM: 7916/1: amba: Add clk_prepare|unprepare in runtime PM callbacks To fully gate the clock and thus potentially also save more power in runtime suspend state, extend clock handling with clk_prepare|unprepare in the runtime PM callbacks. Signed-off-by: Ulf Hansson Signed-off-by: Russell King --- drivers/amba/bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/amba') diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index ea1d8357f298..9e6029105607 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -95,7 +95,7 @@ static int amba_pm_runtime_suspend(struct device *dev) int ret = pm_generic_runtime_suspend(dev); if (ret == 0 && dev->driver) - clk_disable(pcdev->pclk); + clk_disable_unprepare(pcdev->pclk); return ret; } @@ -106,7 +106,7 @@ static int amba_pm_runtime_resume(struct device *dev) int ret; if (dev->driver) { - ret = clk_enable(pcdev->pclk); + ret = clk_prepare_enable(pcdev->pclk); /* Failure is probably fatal to the system, but... */ if (ret) return ret; -- cgit v1.2.3-70-g09d2