aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-02-12 08:06:43 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-02-18 11:06:17 -0500
commitf210c53a82ab9ba10574f8121a300d78e618febd (patch)
tree42d0cf0d16306373bb9da967ec7405987eeb6490 /drivers
parentb28a960c42fcd9cfc987441fa6d1c1a471f0f9ed (diff)
ARM: 7958/1: amba: Let runtime PM callbacks be available for CONFIG_PM
Convert to the SET_PM_RUNTIME_PM macro while defining the runtime PM callbacks. This means the callbacks becomes available for both CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME, which is needed by drivers and power domains. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/amba/bus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index 9e6029105607..3cf61a127ee5 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -83,7 +83,7 @@ static struct device_attribute amba_dev_attrs[] = {
83 __ATTR_NULL, 83 __ATTR_NULL,
84}; 84};
85 85
86#ifdef CONFIG_PM_RUNTIME 86#ifdef CONFIG_PM
87/* 87/*
88 * Hooks to provide runtime PM of the pclk (bus clock). It is safe to 88 * Hooks to provide runtime PM of the pclk (bus clock). It is safe to
89 * enable/disable the bus clock at runtime PM suspend/resume as this 89 * enable/disable the bus clock at runtime PM suspend/resume as this
@@ -123,7 +123,7 @@ static const struct dev_pm_ops amba_pm = {
123 .thaw = pm_generic_thaw, 123 .thaw = pm_generic_thaw,
124 .poweroff = pm_generic_poweroff, 124 .poweroff = pm_generic_poweroff,
125 .restore = pm_generic_restore, 125 .restore = pm_generic_restore,
126 SET_RUNTIME_PM_OPS( 126 SET_PM_RUNTIME_PM_OPS(
127 amba_pm_runtime_suspend, 127 amba_pm_runtime_suspend,
128 amba_pm_runtime_resume, 128 amba_pm_runtime_resume,
129 NULL 129 NULL