aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-12-12 18:42:18 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-12-12 18:42:18 -0500
commit641d334b29429f1d191b4bb4295f7a259b1660cc (patch)
treed5afe5355150d6e21913e57479b7c505e9135ed1 /sound/pci
parent7ba37053ebcc59e96b2677d42a2ee08b6c217d25 (diff)
sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under sound/. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Takashi Iwai <tiwai@suse.de> Acked-by: Nicolin Chen <nicoleotsuka@gmail.com> Acked-by: Brian Austin <brian.austin@cirrus.com> Acked-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/hda_controller.c2
-rw-r--r--sound/pci/hda/hda_intel.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c
index 8337645aa7a5..8276a743e22e 100644
--- a/sound/pci/hda/hda_controller.c
+++ b/sound/pci/hda/hda_controller.c
@@ -1676,7 +1676,7 @@ irqreturn_t azx_interrupt(int irq, void *dev_id)
1676 u8 sd_status; 1676 u8 sd_status;
1677 int i; 1677 int i;
1678 1678
1679#ifdef CONFIG_PM_RUNTIME 1679#ifdef CONFIG_PM
1680 if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME) 1680 if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME)
1681 if (!pm_runtime_active(chip->card->dev)) 1681 if (!pm_runtime_active(chip->card->dev))
1682 return IRQ_NONE; 1682 return IRQ_NONE;
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 48b6c5a3884f..243ffad40605 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -857,7 +857,7 @@ static int azx_resume(struct device *dev)
857} 857}
858#endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ 858#endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */
859 859
860#ifdef CONFIG_PM_RUNTIME 860#ifdef CONFIG_PM
861static int azx_runtime_suspend(struct device *dev) 861static int azx_runtime_suspend(struct device *dev)
862{ 862{
863 struct snd_card *card = dev_get_drvdata(dev); 863 struct snd_card *card = dev_get_drvdata(dev);
@@ -955,9 +955,6 @@ static int azx_runtime_idle(struct device *dev)
955 return 0; 955 return 0;
956} 956}
957 957
958#endif /* CONFIG_PM_RUNTIME */
959
960#ifdef CONFIG_PM
961static const struct dev_pm_ops azx_pm = { 958static const struct dev_pm_ops azx_pm = {
962 SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume) 959 SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume)
963 SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle) 960 SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle)