Skip to content

Commit f210c53

Browse files
Ulf HanssonRussell King
authored andcommitted
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>
1 parent b28a960 commit f210c53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/amba/bus.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static struct device_attribute amba_dev_attrs[] = {
8383
__ATTR_NULL,
8484
};
8585

86-
#ifdef CONFIG_PM_RUNTIME
86+
#ifdef CONFIG_PM
8787
/*
8888
* Hooks to provide runtime PM of the pclk (bus clock). It is safe to
8989
* enable/disable the bus clock at runtime PM suspend/resume as this
@@ -123,7 +123,7 @@ static const struct dev_pm_ops amba_pm = {
123123
.thaw = pm_generic_thaw,
124124
.poweroff = pm_generic_poweroff,
125125
.restore = pm_generic_restore,
126-
SET_RUNTIME_PM_OPS(
126+
SET_PM_RUNTIME_PM_OPS(
127127
amba_pm_runtime_suspend,
128128
amba_pm_runtime_resume,
129129
NULL

0 commit comments

Comments
 (0)