diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-03-01 05:56:06 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-05 23:44:45 -0500 |
commit | 736198b0486c8d5032456de0813515d954df978a (patch) | |
tree | 7b616a69201a413cbf89d8131596bd655cc46203 /drivers | |
parent | e37912fd0bdf174e934af6cfb0002a077867b644 (diff) |
spi: pl022: 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 to handle the
combinations of these scenarios.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi-pl022.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 74a072924b65..6dfcabf74728 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c | |||
@@ -2277,7 +2277,7 @@ pl022_remove(struct amba_device *adev) | |||
2277 | return 0; | 2277 | return 0; |
2278 | } | 2278 | } |
2279 | 2279 | ||
2280 | #if defined(CONFIG_SUSPEND) || defined(CONFIG_PM_RUNTIME) | 2280 | #ifdef CONFIG_PM |
2281 | /* | 2281 | /* |
2282 | * These two functions are used from both suspend/resume and | 2282 | * These two functions are used from both suspend/resume and |
2283 | * the runtime counterparts to handle external resources like | 2283 | * the runtime counterparts to handle external resources like |
@@ -2343,7 +2343,7 @@ static int pl022_resume(struct device *dev) | |||
2343 | } | 2343 | } |
2344 | #endif /* CONFIG_PM */ | 2344 | #endif /* CONFIG_PM */ |
2345 | 2345 | ||
2346 | #ifdef CONFIG_PM_RUNTIME | 2346 | #ifdef CONFIG_PM |
2347 | static int pl022_runtime_suspend(struct device *dev) | 2347 | static int pl022_runtime_suspend(struct device *dev) |
2348 | { | 2348 | { |
2349 | struct pl022 *pl022 = dev_get_drvdata(dev); | 2349 | struct pl022 *pl022 = dev_get_drvdata(dev); |
@@ -2363,7 +2363,7 @@ static int pl022_runtime_resume(struct device *dev) | |||
2363 | 2363 | ||
2364 | static const struct dev_pm_ops pl022_dev_pm_ops = { | 2364 | static const struct dev_pm_ops pl022_dev_pm_ops = { |
2365 | SET_SYSTEM_SLEEP_PM_OPS(pl022_suspend, pl022_resume) | 2365 | SET_SYSTEM_SLEEP_PM_OPS(pl022_suspend, pl022_resume) |
2366 | SET_RUNTIME_PM_OPS(pl022_runtime_suspend, pl022_runtime_resume, NULL) | 2366 | SET_PM_RUNTIME_PM_OPS(pl022_runtime_suspend, pl022_runtime_resume, NULL) |
2367 | }; | 2367 | }; |
2368 | 2368 | ||
2369 | static struct vendor_data vendor_arm = { | 2369 | static struct vendor_data vendor_arm = { |