aboutsummaryrefslogtreecommitdiffstats
path: root/sound
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
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')
-rw-r--r--sound/pci/hda/hda_controller.c2
-rw-r--r--sound/pci/hda/hda_intel.c5
-rw-r--r--sound/soc/codecs/cs35l32.c2
-rw-r--r--sound/soc/codecs/cs42xx8.c2
-rw-r--r--sound/soc/codecs/max98090.c2
-rw-r--r--sound/soc/codecs/pcm512x.c2
-rw-r--r--sound/soc/codecs/tas2552.c4
-rw-r--r--sound/soc/codecs/wm2200.c2
-rw-r--r--sound/soc/codecs/wm5100.c2
-rw-r--r--sound/soc/codecs/wm8962.c2
-rw-r--r--sound/soc/fsl/fsl_asrc.c4
-rw-r--r--sound/soc/samsung/i2s.c4
12 files changed, 15 insertions, 18 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)
diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c
index c125925da92e..ec55c590afd0 100644
--- a/sound/soc/codecs/cs35l32.c
+++ b/sound/soc/codecs/cs35l32.c
@@ -550,7 +550,7 @@ static int cs35l32_i2c_remove(struct i2c_client *i2c_client)
550 return 0; 550 return 0;
551} 551}
552 552
553#ifdef CONFIG_PM_RUNTIME 553#ifdef CONFIG_PM
554static int cs35l32_runtime_suspend(struct device *dev) 554static int cs35l32_runtime_suspend(struct device *dev)
555{ 555{
556 struct cs35l32_private *cs35l32 = dev_get_drvdata(dev); 556 struct cs35l32_private *cs35l32 = dev_get_drvdata(dev);
diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c
index 02b1520ae0bc..670ebfe12903 100644
--- a/sound/soc/codecs/cs42xx8.c
+++ b/sound/soc/codecs/cs42xx8.c
@@ -537,7 +537,7 @@ err_enable:
537} 537}
538EXPORT_SYMBOL_GPL(cs42xx8_probe); 538EXPORT_SYMBOL_GPL(cs42xx8_probe);
539 539
540#ifdef CONFIG_PM_RUNTIME 540#ifdef CONFIG_PM
541static int cs42xx8_runtime_resume(struct device *dev) 541static int cs42xx8_runtime_resume(struct device *dev)
542{ 542{
543 struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); 543 struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev);
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index 1229554f1464..88a65da3c53c 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2492,7 +2492,7 @@ static int max98090_i2c_remove(struct i2c_client *client)
2492 return 0; 2492 return 0;
2493} 2493}
2494 2494
2495#ifdef CONFIG_PM_RUNTIME 2495#ifdef CONFIG_PM
2496static int max98090_runtime_resume(struct device *dev) 2496static int max98090_runtime_resume(struct device *dev)
2497{ 2497{
2498 struct max98090_priv *max98090 = dev_get_drvdata(dev); 2498 struct max98090_priv *max98090 = dev_get_drvdata(dev);
diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c
index 0c8aefab404c..e5f2fb884bf3 100644
--- a/sound/soc/codecs/pcm512x.c
+++ b/sound/soc/codecs/pcm512x.c
@@ -517,7 +517,7 @@ void pcm512x_remove(struct device *dev)
517} 517}
518EXPORT_SYMBOL_GPL(pcm512x_remove); 518EXPORT_SYMBOL_GPL(pcm512x_remove);
519 519
520#ifdef CONFIG_PM_RUNTIME 520#ifdef CONFIG_PM
521static int pcm512x_suspend(struct device *dev) 521static int pcm512x_suspend(struct device *dev)
522{ 522{
523 struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); 523 struct pcm512x_priv *pcm512x = dev_get_drvdata(dev);
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c
index f039dc825971..0fde5df40f4d 100644
--- a/sound/soc/codecs/tas2552.c
+++ b/sound/soc/codecs/tas2552.c
@@ -115,7 +115,7 @@ static const struct snd_soc_dapm_route tas2552_audio_map[] = {
115 {"ClassD", NULL, "PLL"}, 115 {"ClassD", NULL, "PLL"},
116}; 116};
117 117
118#ifdef CONFIG_PM_RUNTIME 118#ifdef CONFIG_PM
119static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) 119static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown)
120{ 120{
121 u8 cfg1_reg; 121 u8 cfg1_reg;
@@ -264,7 +264,7 @@ static int tas2552_mute(struct snd_soc_dai *dai, int mute)
264 return 0; 264 return 0;
265} 265}
266 266
267#ifdef CONFIG_PM_RUNTIME 267#ifdef CONFIG_PM
268static int tas2552_runtime_suspend(struct device *dev) 268static int tas2552_runtime_suspend(struct device *dev)
269{ 269{
270 struct tas2552_data *tas2552 = dev_get_drvdata(dev); 270 struct tas2552_data *tas2552 = dev_get_drvdata(dev);
diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c
index cdea9d9c1631..15599845a660 100644
--- a/sound/soc/codecs/wm2200.c
+++ b/sound/soc/codecs/wm2200.c
@@ -2440,7 +2440,7 @@ static int wm2200_i2c_remove(struct i2c_client *i2c)
2440 return 0; 2440 return 0;
2441} 2441}
2442 2442
2443#ifdef CONFIG_PM_RUNTIME 2443#ifdef CONFIG_PM
2444static int wm2200_runtime_suspend(struct device *dev) 2444static int wm2200_runtime_suspend(struct device *dev)
2445{ 2445{
2446 struct wm2200_priv *wm2200 = dev_get_drvdata(dev); 2446 struct wm2200_priv *wm2200 = dev_get_drvdata(dev);
diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c
index a01ad629ed61..b80970dc2d2f 100644
--- a/sound/soc/codecs/wm5100.c
+++ b/sound/soc/codecs/wm5100.c
@@ -2664,7 +2664,7 @@ static int wm5100_i2c_remove(struct i2c_client *i2c)
2664 return 0; 2664 return 0;
2665} 2665}
2666 2666
2667#ifdef CONFIG_PM_RUNTIME 2667#ifdef CONFIG_PM
2668static int wm5100_runtime_suspend(struct device *dev) 2668static int wm5100_runtime_suspend(struct device *dev)
2669{ 2669{
2670 struct wm5100_priv *wm5100 = dev_get_drvdata(dev); 2670 struct wm5100_priv *wm5100 = dev_get_drvdata(dev);
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 9077411e62ce..77ea0012afca 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3782,7 +3782,7 @@ static int wm8962_i2c_remove(struct i2c_client *client)
3782 return 0; 3782 return 0;
3783} 3783}
3784 3784
3785#ifdef CONFIG_PM_RUNTIME 3785#ifdef CONFIG_PM
3786static int wm8962_runtime_resume(struct device *dev) 3786static int wm8962_runtime_resume(struct device *dev)
3787{ 3787{
3788 struct wm8962_priv *wm8962 = dev_get_drvdata(dev); 3788 struct wm8962_priv *wm8962 = dev_get_drvdata(dev);
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c
index 9deabdd2b1a2..026a80117540 100644
--- a/sound/soc/fsl/fsl_asrc.c
+++ b/sound/soc/fsl/fsl_asrc.c
@@ -928,7 +928,7 @@ static int fsl_asrc_probe(struct platform_device *pdev)
928 return 0; 928 return 0;
929} 929}
930 930
931#ifdef CONFIG_PM_RUNTIME 931#ifdef CONFIG_PM
932static int fsl_asrc_runtime_resume(struct device *dev) 932static int fsl_asrc_runtime_resume(struct device *dev)
933{ 933{
934 struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); 934 struct fsl_asrc *asrc_priv = dev_get_drvdata(dev);
@@ -954,7 +954,7 @@ static int fsl_asrc_runtime_suspend(struct device *dev)
954 954
955 return 0; 955 return 0;
956} 956}
957#endif /* CONFIG_PM_RUNTIME */ 957#endif /* CONFIG_PM */
958 958
959#ifdef CONFIG_PM_SLEEP 959#ifdef CONFIG_PM_SLEEP
960static int fsl_asrc_suspend(struct device *dev) 960static int fsl_asrc_suspend(struct device *dev)
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index 9d513473b300..de8b13270bab 100644
--- a/sound/soc/samsung/i2s.c
+++ b/sound/soc/samsung/i2s.c
@@ -1113,7 +1113,7 @@ static inline const struct samsung_i2s_dai_data *samsung_i2s_get_driver_data(
1113 platform_get_device_id(pdev)->driver_data; 1113 platform_get_device_id(pdev)->driver_data;
1114} 1114}
1115 1115
1116#ifdef CONFIG_PM_RUNTIME 1116#ifdef CONFIG_PM
1117static int i2s_runtime_suspend(struct device *dev) 1117static int i2s_runtime_suspend(struct device *dev)
1118{ 1118{
1119 struct i2s_dai *i2s = dev_get_drvdata(dev); 1119 struct i2s_dai *i2s = dev_get_drvdata(dev);
@@ -1131,7 +1131,7 @@ static int i2s_runtime_resume(struct device *dev)
1131 1131
1132 return 0; 1132 return 0;
1133} 1133}
1134#endif /* CONFIG_PM_RUNTIME */ 1134#endif /* CONFIG_PM */
1135 1135
1136static int samsung_i2s_probe(struct platform_device *pdev) 1136static int samsung_i2s_probe(struct platform_device *pdev)
1137{ 1137{