Commit 5303c0f4 authored by Ulf Hansson's avatar Ulf Hansson Committed by Russell King

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: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 89a5c985
...@@ -95,7 +95,7 @@ static int amba_pm_runtime_suspend(struct device *dev) ...@@ -95,7 +95,7 @@ static int amba_pm_runtime_suspend(struct device *dev)
int ret = pm_generic_runtime_suspend(dev); int ret = pm_generic_runtime_suspend(dev);
if (ret == 0 && dev->driver) if (ret == 0 && dev->driver)
clk_disable(pcdev->pclk); clk_disable_unprepare(pcdev->pclk);
return ret; return ret;
} }
...@@ -106,7 +106,7 @@ static int amba_pm_runtime_resume(struct device *dev) ...@@ -106,7 +106,7 @@ static int amba_pm_runtime_resume(struct device *dev)
int ret; int ret;
if (dev->driver) { if (dev->driver) {
ret = clk_enable(pcdev->pclk); ret = clk_prepare_enable(pcdev->pclk);
/* Failure is probably fatal to the system, but... */ /* Failure is probably fatal to the system, but... */
if (ret) if (ret)
return ret; return ret;
......
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