diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-03 18:34:11 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-03 18:51:30 -0500 |
commit | 6ed23b806e73bdd5b17722df507b0f4570c606b6 (patch) | |
tree | 6c03cc156649f8d15eb301a7d86cce3c4840f0a4 /drivers/mmc | |
parent | a1518d3bbc15d89ccf33056ffa8b3a63de118d24 (diff) |
PM: Merge the SET*_RUNTIME_PM_OPS() macros
The SET_PM_RUNTIME_PM_OPS() and SET_RUNTIME_PM_OPS() macros are
identical except that one of them is not empty for CONFIG_PM set,
while the other one is not empty for CONFIG_PM_RUNTIME set,
respectively.
However, after commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if
PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so one
of these macros is now redundant.
For this reason, replace SET_PM_RUNTIME_PM_OPS() with
SET_RUNTIME_PM_OPS() everywhere and redefine the SET_PM_RUNTIME_PM_OPS
symbol as SET_RUNTIME_PM_OPS in case new code is starting to use the
macro being removed here.
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mmci.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/sh_mobile_sdhi.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/tmio_mmc.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 43af791e2e45..184ea59afa7e 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c | |||
@@ -1843,7 +1843,7 @@ static int mmci_runtime_resume(struct device *dev) | |||
1843 | static const struct dev_pm_ops mmci_dev_pm_ops = { | 1843 | static const struct dev_pm_ops mmci_dev_pm_ops = { |
1844 | SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, | 1844 | SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, |
1845 | pm_runtime_force_resume) | 1845 | pm_runtime_force_resume) |
1846 | SET_PM_RUNTIME_PM_OPS(mmci_runtime_suspend, mmci_runtime_resume, NULL) | 1846 | SET_RUNTIME_PM_OPS(mmci_runtime_suspend, mmci_runtime_resume, NULL) |
1847 | }; | 1847 | }; |
1848 | 1848 | ||
1849 | static struct amba_id mmci_ids[] = { | 1849 | static struct amba_id mmci_ids[] = { |
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index a2e81a1ea6af..00c8ebdf8ec7 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -375,7 +375,7 @@ static int sh_mobile_sdhi_remove(struct platform_device *pdev) | |||
375 | static const struct dev_pm_ops tmio_mmc_dev_pm_ops = { | 375 | static const struct dev_pm_ops tmio_mmc_dev_pm_ops = { |
376 | SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, | 376 | SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, |
377 | pm_runtime_force_resume) | 377 | pm_runtime_force_resume) |
378 | SET_PM_RUNTIME_PM_OPS(tmio_mmc_host_runtime_suspend, | 378 | SET_RUNTIME_PM_OPS(tmio_mmc_host_runtime_suspend, |
379 | tmio_mmc_host_runtime_resume, | 379 | tmio_mmc_host_runtime_resume, |
380 | NULL) | 380 | NULL) |
381 | }; | 381 | }; |
diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index 659028ddb8b1..2616fdfdbbeb 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c | |||
@@ -135,7 +135,7 @@ static int tmio_mmc_remove(struct platform_device *pdev) | |||
135 | 135 | ||
136 | static const struct dev_pm_ops tmio_mmc_dev_pm_ops = { | 136 | static const struct dev_pm_ops tmio_mmc_dev_pm_ops = { |
137 | SET_SYSTEM_SLEEP_PM_OPS(tmio_mmc_suspend, tmio_mmc_resume) | 137 | SET_SYSTEM_SLEEP_PM_OPS(tmio_mmc_suspend, tmio_mmc_resume) |
138 | SET_PM_RUNTIME_PM_OPS(tmio_mmc_host_runtime_suspend, | 138 | SET_RUNTIME_PM_OPS(tmio_mmc_host_runtime_suspend, |
139 | tmio_mmc_host_runtime_resume, | 139 | tmio_mmc_host_runtime_resume, |
140 | NULL) | 140 | NULL) |
141 | }; | 141 | }; |