aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sound/emu10k1.h4
-rw-r--r--sound/pci/ali5451/ali5451.c10
-rw-r--r--sound/pci/als300.c2
-rw-r--r--sound/pci/als4000.c4
-rw-r--r--sound/pci/asihpi/asihpi.c2
-rw-r--r--sound/pci/atiixp.c6
-rw-r--r--sound/pci/atiixp_modem.c6
-rw-r--r--sound/pci/azt3328.c6
-rw-r--r--sound/pci/ca0106/ca0106.h4
-rw-r--r--sound/pci/ca0106/ca0106_main.c2
-rw-r--r--sound/pci/ca0106/ca0106_mixer.c4
-rw-r--r--sound/pci/cmipci.c6
-rw-r--r--sound/pci/cs4281.c6
-rw-r--r--sound/pci/cs46xx/cs46xx.c2
-rw-r--r--sound/pci/cs46xx/cs46xx.h2
-rw-r--r--sound/pci/cs46xx/cs46xx_lib.c8
-rw-r--r--sound/pci/cs46xx/cs46xx_lib.h2
-rw-r--r--sound/pci/cs46xx/dsp_spos.c8
-rw-r--r--sound/pci/cs46xx/dsp_spos_scb_lib.c2
-rw-r--r--sound/pci/cs5535audio/Makefile2
-rw-r--r--sound/pci/cs5535audio/cs5535audio.c2
-rw-r--r--sound/pci/ctxfi/ctatc.c4
-rw-r--r--sound/pci/ctxfi/ctatc.h2
-rw-r--r--sound/pci/ctxfi/cthardware.h2
-rw-r--r--sound/pci/ctxfi/cthw20k1.c4
-rw-r--r--sound/pci/ctxfi/cthw20k2.c4
-rw-r--r--sound/pci/ctxfi/ctmixer.c4
-rw-r--r--sound/pci/ctxfi/ctmixer.h2
-rw-r--r--sound/pci/ctxfi/ctpcm.c2
-rw-r--r--sound/pci/ctxfi/xfi.c2
-rw-r--r--sound/pci/echoaudio/echoaudio.c12
-rw-r--r--sound/pci/echoaudio/echoaudio.h2
-rw-r--r--sound/pci/emu10k1/emu10k1.c4
-rw-r--r--sound/pci/emu10k1/emu10k1_main.c8
-rw-r--r--sound/pci/emu10k1/emufx.c2
-rw-r--r--sound/pci/emu10k1/p16v.c2
-rw-r--r--sound/pci/ens1370.c4
-rw-r--r--sound/pci/es1938.c6
-rw-r--r--sound/pci/es1968.c12
-rw-r--r--sound/pci/fm801.c6
-rw-r--r--sound/pci/ice1712/aureon.c4
-rw-r--r--sound/pci/ice1712/ice1712.h2
-rw-r--r--sound/pci/ice1712/ice1724.c4
-rw-r--r--sound/pci/ice1712/juli.c4
-rw-r--r--sound/pci/ice1712/prodigy_hifi.c4
-rw-r--r--sound/pci/intel8x0.c4
-rw-r--r--sound/pci/intel8x0m.c4
-rw-r--r--sound/pci/maestro3.c10
-rw-r--r--sound/pci/nm256/nm256.c4
-rw-r--r--sound/pci/oxygen/oxygen.c2
-rw-r--r--sound/pci/oxygen/oxygen.h2
-rw-r--r--sound/pci/oxygen/oxygen_lib.c4
-rw-r--r--sound/pci/oxygen/virtuoso.c2
-rw-r--r--sound/pci/riptide/riptide.c6
-rw-r--r--sound/pci/sis7019.c6
-rw-r--r--sound/pci/trident/trident.c2
-rw-r--r--sound/pci/trident/trident_main.c4
-rw-r--r--sound/pci/via82xx.c10
-rw-r--r--sound/pci/via82xx_modem.c4
-rw-r--r--sound/pci/vx222/vx222.c2
-rw-r--r--sound/pci/ymfpci/ymfpci.c2
-rw-r--r--sound/pci/ymfpci/ymfpci.h2
-rw-r--r--sound/pci/ymfpci/ymfpci_main.c8
63 files changed, 135 insertions, 135 deletions
diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h
index 4f865df42f0f..1a33f48ebe78 100644
--- a/include/sound/emu10k1.h
+++ b/include/sound/emu10k1.h
@@ -1788,7 +1788,7 @@ struct snd_emu10k1 {
1788 unsigned int efx_voices_mask[2]; 1788 unsigned int efx_voices_mask[2];
1789 unsigned int next_free_voice; 1789 unsigned int next_free_voice;
1790 1790
1791#ifdef CONFIG_PM 1791#ifdef CONFIG_PM_SLEEP
1792 unsigned int *saved_ptr; 1792 unsigned int *saved_ptr;
1793 unsigned int *saved_gpr; 1793 unsigned int *saved_gpr;
1794 unsigned int *tram_val_saved; 1794 unsigned int *tram_val_saved;
@@ -1856,7 +1856,7 @@ unsigned short snd_emu10k1_ac97_read(struct snd_ac97 *ac97, unsigned short reg);
1856void snd_emu10k1_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short data); 1856void snd_emu10k1_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short data);
1857unsigned int snd_emu10k1_rate_to_pitch(unsigned int rate); 1857unsigned int snd_emu10k1_rate_to_pitch(unsigned int rate);
1858 1858
1859#ifdef CONFIG_PM 1859#ifdef CONFIG_PM_SLEEP
1860void snd_emu10k1_suspend_regs(struct snd_emu10k1 *emu); 1860void snd_emu10k1_suspend_regs(struct snd_emu10k1 *emu);
1861void snd_emu10k1_resume_init(struct snd_emu10k1 *emu); 1861void snd_emu10k1_resume_init(struct snd_emu10k1 *emu);
1862void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu); 1862void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu);
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c
index ee895f3c8605..c7e3c533316e 100644
--- a/sound/pci/ali5451/ali5451.c
+++ b/sound/pci/ali5451/ali5451.c
@@ -270,7 +270,7 @@ struct snd_ali {
270 spinlock_t reg_lock; 270 spinlock_t reg_lock;
271 spinlock_t voice_alloc; 271 spinlock_t voice_alloc;
272 272
273#ifdef CONFIG_PM 273#ifdef CONFIG_PM_SLEEP
274 struct snd_ali_image *image; 274 struct snd_ali_image *image;
275#endif 275#endif
276}; 276};
@@ -1883,7 +1883,7 @@ static int __devinit snd_ali_mixer(struct snd_ali * codec)
1883 return 0; 1883 return 0;
1884} 1884}
1885 1885
1886#ifdef CONFIG_PM 1886#ifdef CONFIG_PM_SLEEP
1887static int ali_suspend(struct device *dev) 1887static int ali_suspend(struct device *dev)
1888{ 1888{
1889 struct pci_dev *pci = to_pci_dev(dev); 1889 struct pci_dev *pci = to_pci_dev(dev);
@@ -1989,7 +1989,7 @@ static SIMPLE_DEV_PM_OPS(ali_pm, ali_suspend, ali_resume);
1989#define ALI_PM_OPS &ali_pm 1989#define ALI_PM_OPS &ali_pm
1990#else 1990#else
1991#define ALI_PM_OPS NULL 1991#define ALI_PM_OPS NULL
1992#endif /* CONFIG_PM */ 1992#endif /* CONFIG_PM_SLEEP */
1993 1993
1994static int snd_ali_free(struct snd_ali * codec) 1994static int snd_ali_free(struct snd_ali * codec)
1995{ 1995{
@@ -2000,7 +2000,7 @@ static int snd_ali_free(struct snd_ali * codec)
2000 if (codec->port) 2000 if (codec->port)
2001 pci_release_regions(codec->pci); 2001 pci_release_regions(codec->pci);
2002 pci_disable_device(codec->pci); 2002 pci_disable_device(codec->pci);
2003#ifdef CONFIG_PM 2003#ifdef CONFIG_PM_SLEEP
2004 kfree(codec->image); 2004 kfree(codec->image);
2005#endif 2005#endif
2006 pci_dev_put(codec->pci_m1533); 2006 pci_dev_put(codec->pci_m1533);
@@ -2232,7 +2232,7 @@ static int __devinit snd_ali_create(struct snd_card *card,
2232 return err; 2232 return err;
2233 } 2233 }
2234 2234
2235#ifdef CONFIG_PM 2235#ifdef CONFIG_PM_SLEEP
2236 codec->image = kmalloc(sizeof(*codec->image), GFP_KERNEL); 2236 codec->image = kmalloc(sizeof(*codec->image), GFP_KERNEL);
2237 if (!codec->image) 2237 if (!codec->image)
2238 snd_printk(KERN_WARNING "can't allocate apm buffer\n"); 2238 snd_printk(KERN_WARNING "can't allocate apm buffer\n");
diff --git a/sound/pci/als300.c b/sound/pci/als300.c
index 68c4469c6d19..00f157a2cf64 100644
--- a/sound/pci/als300.c
+++ b/sound/pci/als300.c
@@ -765,7 +765,7 @@ static int __devinit snd_als300_create(struct snd_card *card,
765 return 0; 765 return 0;
766} 766}
767 767
768#ifdef CONFIG_PM 768#ifdef CONFIG_PM_SLEEP
769static int snd_als300_suspend(struct device *dev) 769static int snd_als300_suspend(struct device *dev)
770{ 770{
771 struct pci_dev *pci = to_pci_dev(dev); 771 struct pci_dev *pci = to_pci_dev(dev);
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c
index 0eeca49c5754..feb2a1436830 100644
--- a/sound/pci/als4000.c
+++ b/sound/pci/als4000.c
@@ -987,7 +987,7 @@ static void __devexit snd_card_als4000_remove(struct pci_dev *pci)
987 pci_set_drvdata(pci, NULL); 987 pci_set_drvdata(pci, NULL);
988} 988}
989 989
990#ifdef CONFIG_PM 990#ifdef CONFIG_PM_SLEEP
991static int snd_als4000_suspend(struct device *dev) 991static int snd_als4000_suspend(struct device *dev)
992{ 992{
993 struct pci_dev *pci = to_pci_dev(dev); 993 struct pci_dev *pci = to_pci_dev(dev);
@@ -1040,7 +1040,7 @@ static SIMPLE_DEV_PM_OPS(snd_als4000_pm, snd_als4000_suspend, snd_als4000_resume
1040#define SND_ALS4000_PM_OPS &snd_als4000_pm 1040#define SND_ALS4000_PM_OPS &snd_als4000_pm
1041#else 1041#else
1042#define SND_ALS4000_PM_OPS NULL 1042#define SND_ALS4000_PM_OPS NULL
1043#endif /* CONFIG_PM */ 1043#endif /* CONFIG_PM_SLEEP */
1044 1044
1045static struct pci_driver als4000_driver = { 1045static struct pci_driver als4000_driver = {
1046 .name = KBUILD_MODNAME, 1046 .name = KBUILD_MODNAME,
diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c
index e8de831f98bc..a51e3ce3c800 100644
--- a/sound/pci/asihpi/asihpi.c
+++ b/sound/pci/asihpi/asihpi.c
@@ -2968,7 +2968,7 @@ static struct pci_driver driver = {
2968 .id_table = asihpi_pci_tbl, 2968 .id_table = asihpi_pci_tbl,
2969 .probe = snd_asihpi_probe, 2969 .probe = snd_asihpi_probe,
2970 .remove = __devexit_p(snd_asihpi_remove), 2970 .remove = __devexit_p(snd_asihpi_remove),
2971#ifdef CONFIG_PM 2971#ifdef CONFIG_PM_SLEEP
2972/* .suspend = snd_asihpi_suspend, 2972/* .suspend = snd_asihpi_suspend,
2973 .resume = snd_asihpi_resume, */ 2973 .resume = snd_asihpi_resume, */
2974#endif 2974#endif
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c
index 31020d2a868b..c744df5bb1c6 100644
--- a/sound/pci/atiixp.c
+++ b/sound/pci/atiixp.c
@@ -535,7 +535,7 @@ static int snd_atiixp_aclink_reset(struct atiixp *chip)
535 return 0; 535 return 0;
536} 536}
537 537
538#ifdef CONFIG_PM 538#ifdef CONFIG_PM_SLEEP
539static int snd_atiixp_aclink_down(struct atiixp *chip) 539static int snd_atiixp_aclink_down(struct atiixp *chip)
540{ 540{
541 // if (atiixp_read(chip, MODEM_MIRROR) & 0x1) /* modem running, too? */ 541 // if (atiixp_read(chip, MODEM_MIRROR) & 0x1) /* modem running, too? */
@@ -1458,7 +1458,7 @@ static int __devinit snd_atiixp_mixer_new(struct atiixp *chip, int clock,
1458} 1458}
1459 1459
1460 1460
1461#ifdef CONFIG_PM 1461#ifdef CONFIG_PM_SLEEP
1462/* 1462/*
1463 * power management 1463 * power management
1464 */ 1464 */
@@ -1533,7 +1533,7 @@ static SIMPLE_DEV_PM_OPS(snd_atiixp_pm, snd_atiixp_suspend, snd_atiixp_resume);
1533#define SND_ATIIXP_PM_OPS &snd_atiixp_pm 1533#define SND_ATIIXP_PM_OPS &snd_atiixp_pm
1534#else 1534#else
1535#define SND_ATIIXP_PM_OPS NULL 1535#define SND_ATIIXP_PM_OPS NULL
1536#endif /* CONFIG_PM */ 1536#endif /* CONFIG_PM_SLEEP */
1537 1537
1538 1538
1539#ifdef CONFIG_PROC_FS 1539#ifdef CONFIG_PROC_FS
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c
index 79e204ec623f..6fc03d9f2cff 100644
--- a/sound/pci/atiixp_modem.c
+++ b/sound/pci/atiixp_modem.c
@@ -511,7 +511,7 @@ static int snd_atiixp_aclink_reset(struct atiixp_modem *chip)
511 return 0; 511 return 0;
512} 512}
513 513
514#ifdef CONFIG_PM 514#ifdef CONFIG_PM_SLEEP
515static int snd_atiixp_aclink_down(struct atiixp_modem *chip) 515static int snd_atiixp_aclink_down(struct atiixp_modem *chip)
516{ 516{
517 // if (atiixp_read(chip, MODEM_MIRROR) & 0x1) /* modem running, too? */ 517 // if (atiixp_read(chip, MODEM_MIRROR) & 0x1) /* modem running, too? */
@@ -1113,7 +1113,7 @@ static int __devinit snd_atiixp_mixer_new(struct atiixp_modem *chip, int clock)
1113} 1113}
1114 1114
1115 1115
1116#ifdef CONFIG_PM 1116#ifdef CONFIG_PM_SLEEP
1117/* 1117/*
1118 * power management 1118 * power management
1119 */ 1119 */
@@ -1169,7 +1169,7 @@ static SIMPLE_DEV_PM_OPS(snd_atiixp_pm, snd_atiixp_suspend, snd_atiixp_resume);
1169#define SND_ATIIXP_PM_OPS &snd_atiixp_pm 1169#define SND_ATIIXP_PM_OPS &snd_atiixp_pm
1170#else 1170#else
1171#define SND_ATIIXP_PM_OPS NULL 1171#define SND_ATIIXP_PM_OPS NULL
1172#endif /* CONFIG_PM */ 1172#endif /* CONFIG_PM_SLEEP */
1173 1173
1174#ifdef CONFIG_PROC_FS 1174#ifdef CONFIG_PROC_FS
1175/* 1175/*
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c
index 4dddd871548b..c03b66b784a3 100644
--- a/sound/pci/azt3328.c
+++ b/sound/pci/azt3328.c
@@ -365,7 +365,7 @@ struct snd_azf3328 {
365 * CONFIG_PM register storage below, but that's slightly difficult. */ 365 * CONFIG_PM register storage below, but that's slightly difficult. */
366 u16 shadow_reg_ctrl_6AH; 366 u16 shadow_reg_ctrl_6AH;
367 367
368#ifdef CONFIG_PM 368#ifdef CONFIG_PM_SLEEP
369 /* register value containers for power management 369 /* register value containers for power management
370 * Note: not always full I/O range preserved (similar to Win driver!) */ 370 * Note: not always full I/O range preserved (similar to Win driver!) */
371 u32 saved_regs_ctrl[AZF_ALIGN(AZF_IO_SIZE_CTRL_PM) / 4]; 371 u32 saved_regs_ctrl[AZF_ALIGN(AZF_IO_SIZE_CTRL_PM) / 4];
@@ -2729,7 +2729,7 @@ snd_azf3328_remove(struct pci_dev *pci)
2729 snd_azf3328_dbgcallleave(); 2729 snd_azf3328_dbgcallleave();
2730} 2730}
2731 2731
2732#ifdef CONFIG_PM 2732#ifdef CONFIG_PM_SLEEP
2733static inline void 2733static inline void
2734snd_azf3328_suspend_regs(unsigned long io_addr, unsigned count, u32 *saved_regs) 2734snd_azf3328_suspend_regs(unsigned long io_addr, unsigned count, u32 *saved_regs)
2735{ 2735{
@@ -2866,7 +2866,7 @@ static SIMPLE_DEV_PM_OPS(snd_azf3328_pm, snd_azf3328_suspend, snd_azf3328_resume
2866#define SND_AZF3328_PM_OPS &snd_azf3328_pm 2866#define SND_AZF3328_PM_OPS &snd_azf3328_pm
2867#else 2867#else
2868#define SND_AZF3328_PM_OPS NULL 2868#define SND_AZF3328_PM_OPS NULL
2869#endif /* CONFIG_PM */ 2869#endif /* CONFIG_PM_SLEEP */
2870 2870
2871static struct pci_driver azf3328_driver = { 2871static struct pci_driver azf3328_driver = {
2872 .name = KBUILD_MODNAME, 2872 .name = KBUILD_MODNAME,
diff --git a/sound/pci/ca0106/ca0106.h b/sound/pci/ca0106/ca0106.h
index e8e8ccc96403..04402c14cb23 100644
--- a/sound/pci/ca0106/ca0106.h
+++ b/sound/pci/ca0106/ca0106.h
@@ -710,7 +710,7 @@ struct snd_ca0106 {
710 710
711 u16 spi_dac_reg[16]; 711 u16 spi_dac_reg[16];
712 712
713#ifdef CONFIG_PM 713#ifdef CONFIG_PM_SLEEP
714#define NUM_SAVED_VOLUMES 9 714#define NUM_SAVED_VOLUMES 9
715 unsigned int saved_vol[NUM_SAVED_VOLUMES]; 715 unsigned int saved_vol[NUM_SAVED_VOLUMES];
716#endif 716#endif
@@ -733,7 +733,7 @@ int snd_ca0106_i2c_write(struct snd_ca0106 *emu, u32 reg, u32 value);
733int snd_ca0106_spi_write(struct snd_ca0106 * emu, 733int snd_ca0106_spi_write(struct snd_ca0106 * emu,
734 unsigned int data); 734 unsigned int data);
735 735
736#ifdef CONFIG_PM 736#ifdef CONFIG_PM_SLEEP
737void snd_ca0106_mixer_suspend(struct snd_ca0106 *chip); 737void snd_ca0106_mixer_suspend(struct snd_ca0106 *chip);
738void snd_ca0106_mixer_resume(struct snd_ca0106 *chip); 738void snd_ca0106_mixer_resume(struct snd_ca0106 *chip);
739#else 739#else
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c
index 83277b747b36..fc6787699ba9 100644
--- a/sound/pci/ca0106/ca0106_main.c
+++ b/sound/pci/ca0106/ca0106_main.c
@@ -1871,7 +1871,7 @@ static void __devexit snd_ca0106_remove(struct pci_dev *pci)
1871 pci_set_drvdata(pci, NULL); 1871 pci_set_drvdata(pci, NULL);
1872} 1872}
1873 1873
1874#ifdef CONFIG_PM 1874#ifdef CONFIG_PM_SLEEP
1875static int snd_ca0106_suspend(struct device *dev) 1875static int snd_ca0106_suspend(struct device *dev)
1876{ 1876{
1877 struct pci_dev *pci = to_pci_dev(dev); 1877 struct pci_dev *pci = to_pci_dev(dev);
diff --git a/sound/pci/ca0106/ca0106_mixer.c b/sound/pci/ca0106/ca0106_mixer.c
index 84f3f92436b5..68eacf7002d6 100644
--- a/sound/pci/ca0106/ca0106_mixer.c
+++ b/sound/pci/ca0106/ca0106_mixer.c
@@ -907,7 +907,7 @@ int __devinit snd_ca0106_mixer(struct snd_ca0106 *emu)
907 return 0; 907 return 0;
908} 908}
909 909
910#ifdef CONFIG_PM 910#ifdef CONFIG_PM_SLEEP
911struct ca0106_vol_tbl { 911struct ca0106_vol_tbl {
912 unsigned int channel_id; 912 unsigned int channel_id;
913 unsigned int reg; 913 unsigned int reg;
@@ -953,4 +953,4 @@ void snd_ca0106_mixer_resume(struct snd_ca0106 *chip)
953 if (chip->details->i2c_adc) 953 if (chip->details->i2c_adc)
954 ca0106_set_capture_mic_line_in(chip); 954 ca0106_set_capture_mic_line_in(chip);
955} 955}
956#endif /* CONFIG_PM */ 956#endif /* CONFIG_PM_SLEEP */
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c
index b7d6f2b886ef..7c25906b5f88 100644
--- a/sound/pci/cmipci.c
+++ b/sound/pci/cmipci.c
@@ -504,7 +504,7 @@ struct cmipci {
504 504
505 spinlock_t reg_lock; 505 spinlock_t reg_lock;
506 506
507#ifdef CONFIG_PM 507#ifdef CONFIG_PM_SLEEP
508 unsigned int saved_regs[0x20]; 508 unsigned int saved_regs[0x20];
509 unsigned char saved_mixers[0x20]; 509 unsigned char saved_mixers[0x20];
510#endif 510#endif
@@ -3315,7 +3315,7 @@ static void __devexit snd_cmipci_remove(struct pci_dev *pci)
3315} 3315}
3316 3316
3317 3317
3318#ifdef CONFIG_PM 3318#ifdef CONFIG_PM_SLEEP
3319/* 3319/*
3320 * power management 3320 * power management
3321 */ 3321 */
@@ -3403,7 +3403,7 @@ static SIMPLE_DEV_PM_OPS(snd_cmipci_pm, snd_cmipci_suspend, snd_cmipci_resume);
3403#define SND_CMIPCI_PM_OPS &snd_cmipci_pm 3403#define SND_CMIPCI_PM_OPS &snd_cmipci_pm
3404#else 3404#else
3405#define SND_CMIPCI_PM_OPS NULL 3405#define SND_CMIPCI_PM_OPS NULL
3406#endif /* CONFIG_PM */ 3406#endif /* CONFIG_PM_SLEEP */
3407 3407
3408static struct pci_driver cmipci_driver = { 3408static struct pci_driver cmipci_driver = {
3409 .name = KBUILD_MODNAME, 3409 .name = KBUILD_MODNAME,
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c
index 45a8317085f4..8e86ec0031fc 100644
--- a/sound/pci/cs4281.c
+++ b/sound/pci/cs4281.c
@@ -486,7 +486,7 @@ struct cs4281 {
486 486
487 struct gameport *gameport; 487 struct gameport *gameport;
488 488
489#ifdef CONFIG_PM 489#ifdef CONFIG_PM_SLEEP
490 u32 suspend_regs[SUSPEND_REGISTERS]; 490 u32 suspend_regs[SUSPEND_REGISTERS];
491#endif 491#endif
492 492
@@ -1977,7 +1977,7 @@ static void __devexit snd_cs4281_remove(struct pci_dev *pci)
1977/* 1977/*
1978 * Power Management 1978 * Power Management
1979 */ 1979 */
1980#ifdef CONFIG_PM 1980#ifdef CONFIG_PM_SLEEP
1981 1981
1982static int saved_regs[SUSPEND_REGISTERS] = { 1982static int saved_regs[SUSPEND_REGISTERS] = {
1983 BA0_JSCTL, 1983 BA0_JSCTL,
@@ -2089,7 +2089,7 @@ static SIMPLE_DEV_PM_OPS(cs4281_pm, cs4281_suspend, cs4281_resume);
2089#define CS4281_PM_OPS &cs4281_pm 2089#define CS4281_PM_OPS &cs4281_pm
2090#else 2090#else
2091#define CS4281_PM_OPS NULL 2091#define CS4281_PM_OPS NULL
2092#endif /* CONFIG_PM */ 2092#endif /* CONFIG_PM_SLEEP */
2093 2093
2094static struct pci_driver cs4281_driver = { 2094static struct pci_driver cs4281_driver = {
2095 .name = KBUILD_MODNAME, 2095 .name = KBUILD_MODNAME,
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c
index 1e007c736a8b..575bed0836ff 100644
--- a/sound/pci/cs46xx/cs46xx.c
+++ b/sound/pci/cs46xx/cs46xx.c
@@ -166,7 +166,7 @@ static struct pci_driver cs46xx_driver = {
166 .id_table = snd_cs46xx_ids, 166 .id_table = snd_cs46xx_ids,
167 .probe = snd_card_cs46xx_probe, 167 .probe = snd_card_cs46xx_probe,
168 .remove = __devexit_p(snd_card_cs46xx_remove), 168 .remove = __devexit_p(snd_card_cs46xx_remove),
169#ifdef CONFIG_PM 169#ifdef CONFIG_PM_SLEEP
170 .driver = { 170 .driver = {
171 .pm = &snd_cs46xx_pm, 171 .pm = &snd_cs46xx_pm,
172 }, 172 },
diff --git a/sound/pci/cs46xx/cs46xx.h b/sound/pci/cs46xx/cs46xx.h
index 29d8a8da1ba7..fc339ef0a0ae 100644
--- a/sound/pci/cs46xx/cs46xx.h
+++ b/sound/pci/cs46xx/cs46xx.h
@@ -1721,7 +1721,7 @@ struct snd_cs46xx {
1721 unsigned int play_ctl; 1721 unsigned int play_ctl;
1722#endif 1722#endif
1723 1723
1724#ifdef CONFIG_PM 1724#ifdef CONFIG_PM_SLEEP
1725 u32 *saved_regs; 1725 u32 *saved_regs;
1726#endif 1726#endif
1727}; 1727};
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c
index f75f5ffdfdfb..6b111d0929b1 100644
--- a/sound/pci/cs46xx/cs46xx_lib.c
+++ b/sound/pci/cs46xx/cs46xx_lib.c
@@ -2797,7 +2797,7 @@ static int snd_cs46xx_free(struct snd_cs46xx *chip)
2797 } 2797 }
2798#endif 2798#endif
2799 2799
2800#ifdef CONFIG_PM 2800#ifdef CONFIG_PM_SLEEP
2801 kfree(chip->saved_regs); 2801 kfree(chip->saved_regs);
2802#endif 2802#endif
2803 2803
@@ -3590,7 +3590,7 @@ static struct cs_card_type __devinitdata cards[] = {
3590/* 3590/*
3591 * APM support 3591 * APM support
3592 */ 3592 */
3593#ifdef CONFIG_PM 3593#ifdef CONFIG_PM_SLEEP
3594static unsigned int saved_regs[] = { 3594static unsigned int saved_regs[] = {
3595 BA0_ACOSV, 3595 BA0_ACOSV,
3596 /*BA0_ASER_FADDR,*/ 3596 /*BA0_ASER_FADDR,*/
@@ -3711,7 +3711,7 @@ static int snd_cs46xx_resume(struct device *dev)
3711} 3711}
3712 3712
3713SIMPLE_DEV_PM_OPS(snd_cs46xx_pm, snd_cs46xx_suspend, snd_cs46xx_resume); 3713SIMPLE_DEV_PM_OPS(snd_cs46xx_pm, snd_cs46xx_suspend, snd_cs46xx_resume);
3714#endif /* CONFIG_PM */ 3714#endif /* CONFIG_PM_SLEEP */
3715 3715
3716 3716
3717/* 3717/*
@@ -3868,7 +3868,7 @@ int __devinit snd_cs46xx_create(struct snd_card *card,
3868 3868
3869 snd_cs46xx_proc_init(card, chip); 3869 snd_cs46xx_proc_init(card, chip);
3870 3870
3871#ifdef CONFIG_PM 3871#ifdef CONFIG_PM_SLEEP
3872 chip->saved_regs = kmalloc(sizeof(*chip->saved_regs) * 3872 chip->saved_regs = kmalloc(sizeof(*chip->saved_regs) *
3873 ARRAY_SIZE(saved_regs), GFP_KERNEL); 3873 ARRAY_SIZE(saved_regs), GFP_KERNEL);
3874 if (!chip->saved_regs) { 3874 if (!chip->saved_regs) {
diff --git a/sound/pci/cs46xx/cs46xx_lib.h b/sound/pci/cs46xx/cs46xx_lib.h
index b5189495d58a..86f14620f817 100644
--- a/sound/pci/cs46xx/cs46xx_lib.h
+++ b/sound/pci/cs46xx/cs46xx_lib.h
@@ -90,7 +90,7 @@ static inline unsigned int snd_cs46xx_peekBA0(struct snd_cs46xx *chip, unsigned
90struct dsp_spos_instance *cs46xx_dsp_spos_create (struct snd_cs46xx * chip); 90struct dsp_spos_instance *cs46xx_dsp_spos_create (struct snd_cs46xx * chip);
91void cs46xx_dsp_spos_destroy (struct snd_cs46xx * chip); 91void cs46xx_dsp_spos_destroy (struct snd_cs46xx * chip);
92int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module); 92int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module);
93#ifdef CONFIG_PM 93#ifdef CONFIG_PM_SLEEP
94int cs46xx_dsp_resume(struct snd_cs46xx * chip); 94int cs46xx_dsp_resume(struct snd_cs46xx * chip);
95#endif 95#endif
96struct dsp_symbol_entry *cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name, 96struct dsp_symbol_entry *cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name,
diff --git a/sound/pci/cs46xx/dsp_spos.c b/sound/pci/cs46xx/dsp_spos.c
index 56fec0bc0efb..1686b4f4c44f 100644
--- a/sound/pci/cs46xx/dsp_spos.c
+++ b/sound/pci/cs46xx/dsp_spos.c
@@ -287,7 +287,7 @@ void cs46xx_dsp_spos_destroy (struct snd_cs46xx * chip)
287 if (ins->scbs[i].deleted) continue; 287 if (ins->scbs[i].deleted) continue;
288 288
289 cs46xx_dsp_proc_free_scb_desc ( (ins->scbs + i) ); 289 cs46xx_dsp_proc_free_scb_desc ( (ins->scbs + i) );
290#ifdef CONFIG_PM 290#ifdef CONFIG_PM_SLEEP
291 kfree(ins->scbs[i].data); 291 kfree(ins->scbs[i].data);
292#endif 292#endif
293 } 293 }
@@ -1019,7 +1019,7 @@ cs46xx_dsp_create_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32
1019{ 1019{
1020 struct dsp_scb_descriptor * desc; 1020 struct dsp_scb_descriptor * desc;
1021 1021
1022#ifdef CONFIG_PM 1022#ifdef CONFIG_PM_SLEEP
1023 /* copy the data for resume */ 1023 /* copy the data for resume */
1024 scb_data = kmemdup(scb_data, SCB_BYTES, GFP_KERNEL); 1024 scb_data = kmemdup(scb_data, SCB_BYTES, GFP_KERNEL);
1025 if (!scb_data) 1025 if (!scb_data)
@@ -1032,7 +1032,7 @@ cs46xx_dsp_create_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32
1032 _dsp_create_scb(chip,scb_data,dest); 1032 _dsp_create_scb(chip,scb_data,dest);
1033 } else { 1033 } else {
1034 snd_printk(KERN_ERR "dsp_spos: failed to map SCB\n"); 1034 snd_printk(KERN_ERR "dsp_spos: failed to map SCB\n");
1035#ifdef CONFIG_PM 1035#ifdef CONFIG_PM_SLEEP
1036 kfree(scb_data); 1036 kfree(scb_data);
1037#endif 1037#endif
1038 } 1038 }
@@ -1937,7 +1937,7 @@ int cs46xx_dsp_set_iec958_volume (struct snd_cs46xx * chip, u16 left, u16 right)
1937 return 0; 1937 return 0;
1938} 1938}
1939 1939
1940#ifdef CONFIG_PM 1940#ifdef CONFIG_PM_SLEEP
1941int cs46xx_dsp_resume(struct snd_cs46xx * chip) 1941int cs46xx_dsp_resume(struct snd_cs46xx * chip)
1942{ 1942{
1943 struct dsp_spos_instance * ins = chip->dsp_spos_instance; 1943 struct dsp_spos_instance * ins = chip->dsp_spos_instance;
diff --git a/sound/pci/cs46xx/dsp_spos_scb_lib.c b/sound/pci/cs46xx/dsp_spos_scb_lib.c
index c2c695b07f8c..409e8764fbeb 100644
--- a/sound/pci/cs46xx/dsp_spos_scb_lib.c
+++ b/sound/pci/cs46xx/dsp_spos_scb_lib.c
@@ -203,7 +203,7 @@ void cs46xx_dsp_remove_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor *
203 remove_symbol (chip,scb->scb_symbol); 203 remove_symbol (chip,scb->scb_symbol);
204 204
205 ins->scbs[scb->index].deleted = 1; 205 ins->scbs[scb->index].deleted = 1;
206#ifdef CONFIG_PM 206#ifdef CONFIG_PM_SLEEP
207 kfree(ins->scbs[scb->index].data); 207 kfree(ins->scbs[scb->index].data);
208 ins->scbs[scb->index].data = NULL; 208 ins->scbs[scb->index].data = NULL;
209#endif 209#endif
diff --git a/sound/pci/cs5535audio/Makefile b/sound/pci/cs5535audio/Makefile
index ccc642269b9e..a8f75f8dfda9 100644
--- a/sound/pci/cs5535audio/Makefile
+++ b/sound/pci/cs5535audio/Makefile
@@ -3,7 +3,7 @@
3# 3#
4 4
5snd-cs5535audio-y := cs5535audio.o cs5535audio_pcm.o 5snd-cs5535audio-y := cs5535audio.o cs5535audio_pcm.o
6snd-cs5535audio-$(CONFIG_PM) += cs5535audio_pm.o 6snd-cs5535audio-$(CONFIG_PM_SLEEP) += cs5535audio_pm.o
7snd-cs5535audio-$(CONFIG_OLPC) += cs5535audio_olpc.o 7snd-cs5535audio-$(CONFIG_OLPC) += cs5535audio_olpc.o
8 8
9# Toplevel Module Dependency 9# Toplevel Module Dependency
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c
index 51f64ba5facf..4915efa551fc 100644
--- a/sound/pci/cs5535audio/cs5535audio.c
+++ b/sound/pci/cs5535audio/cs5535audio.c
@@ -399,7 +399,7 @@ static struct pci_driver cs5535audio_driver = {
399 .id_table = snd_cs5535audio_ids, 399 .id_table = snd_cs5535audio_ids,
400 .probe = snd_cs5535audio_probe, 400 .probe = snd_cs5535audio_probe,
401 .remove = __devexit_p(snd_cs5535audio_remove), 401 .remove = __devexit_p(snd_cs5535audio_remove),
402#ifdef CONFIG_PM 402#ifdef CONFIG_PM_SLEEP
403 .driver = { 403 .driver = {
404 .pm = &snd_cs5535audio_pm, 404 .pm = &snd_cs5535audio_pm,
405 }, 405 },
diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c
index 8e40262d4117..58b235c46e86 100644
--- a/sound/pci/ctxfi/ctatc.c
+++ b/sound/pci/ctxfi/ctatc.c
@@ -1536,7 +1536,7 @@ static void atc_connect_resources(struct ct_atc *atc)
1536 } 1536 }
1537} 1537}
1538 1538
1539#ifdef CONFIG_PM 1539#ifdef CONFIG_PM_SLEEP
1540static int atc_suspend(struct ct_atc *atc) 1540static int atc_suspend(struct ct_atc *atc)
1541{ 1541{
1542 int i; 1542 int i;
@@ -1647,7 +1647,7 @@ static struct ct_atc atc_preset __devinitdata = {
1647 .output_switch_put = atc_output_switch_put, 1647 .output_switch_put = atc_output_switch_put,
1648 .mic_source_switch_get = atc_mic_source_switch_get, 1648 .mic_source_switch_get = atc_mic_source_switch_get,
1649 .mic_source_switch_put = atc_mic_source_switch_put, 1649 .mic_source_switch_put = atc_mic_source_switch_put,
1650#ifdef CONFIG_PM 1650#ifdef CONFIG_PM_SLEEP
1651 .suspend = atc_suspend, 1651 .suspend = atc_suspend,
1652 .resume = atc_resume, 1652 .resume = atc_resume,
1653#endif 1653#endif
diff --git a/sound/pci/ctxfi/ctatc.h b/sound/pci/ctxfi/ctatc.h
index 653e813ad142..69b51f9d345e 100644
--- a/sound/pci/ctxfi/ctatc.h
+++ b/sound/pci/ctxfi/ctatc.h
@@ -143,7 +143,7 @@ struct ct_atc {
143 143
144 struct ct_timer *timer; 144 struct ct_timer *timer;
145 145
146#ifdef CONFIG_PM 146#ifdef CONFIG_PM_SLEEP
147 int (*suspend)(struct ct_atc *atc); 147 int (*suspend)(struct ct_atc *atc);
148 int (*resume)(struct ct_atc *atc); 148 int (*resume)(struct ct_atc *atc);
149#define NUM_PCMS (NUM_CTALSADEVS - 1) 149#define NUM_PCMS (NUM_CTALSADEVS - 1)
diff --git a/sound/pci/ctxfi/cthardware.h b/sound/pci/ctxfi/cthardware.h
index c56fe533b3f3..5977e9a24b5c 100644
--- a/sound/pci/ctxfi/cthardware.h
+++ b/sound/pci/ctxfi/cthardware.h
@@ -72,7 +72,7 @@ struct hw {
72 int (*card_init)(struct hw *hw, struct card_conf *info); 72 int (*card_init)(struct hw *hw, struct card_conf *info);
73 int (*card_stop)(struct hw *hw); 73 int (*card_stop)(struct hw *hw);
74 int (*pll_init)(struct hw *hw, unsigned int rsr); 74 int (*pll_init)(struct hw *hw, unsigned int rsr);
75#ifdef CONFIG_PM 75#ifdef CONFIG_PM_SLEEP
76 int (*suspend)(struct hw *hw); 76 int (*suspend)(struct hw *hw);
77 int (*resume)(struct hw *hw, struct card_conf *info); 77 int (*resume)(struct hw *hw, struct card_conf *info);
78#endif 78#endif
diff --git a/sound/pci/ctxfi/cthw20k1.c b/sound/pci/ctxfi/cthw20k1.c
index dc1969bc67d4..4507f7088b24 100644
--- a/sound/pci/ctxfi/cthw20k1.c
+++ b/sound/pci/ctxfi/cthw20k1.c
@@ -2085,7 +2085,7 @@ static int hw_card_init(struct hw *hw, struct card_conf *info)
2085 return 0; 2085 return 0;
2086} 2086}
2087 2087
2088#ifdef CONFIG_PM 2088#ifdef CONFIG_PM_SLEEP
2089static int hw_suspend(struct hw *hw) 2089static int hw_suspend(struct hw *hw)
2090{ 2090{
2091 struct pci_dev *pci = hw->pci; 2091 struct pci_dev *pci = hw->pci;
@@ -2180,7 +2180,7 @@ static struct hw ct20k1_preset __devinitdata = {
2180 .is_adc_source_selected = hw_is_adc_input_selected, 2180 .is_adc_source_selected = hw_is_adc_input_selected,
2181 .select_adc_source = hw_adc_input_select, 2181 .select_adc_source = hw_adc_input_select,
2182 .capabilities = hw_capabilities, 2182 .capabilities = hw_capabilities,
2183#ifdef CONFIG_PM 2183#ifdef CONFIG_PM_SLEEP
2184 .suspend = hw_suspend, 2184 .suspend = hw_suspend,
2185 .resume = hw_resume, 2185 .resume = hw_resume,
2186#endif 2186#endif
diff --git a/sound/pci/ctxfi/cthw20k2.c b/sound/pci/ctxfi/cthw20k2.c
index 9d1231dc4ae2..b9c9349058bc 100644
--- a/sound/pci/ctxfi/cthw20k2.c
+++ b/sound/pci/ctxfi/cthw20k2.c
@@ -2201,7 +2201,7 @@ static int hw_card_init(struct hw *hw, struct card_conf *info)
2201 return 0; 2201 return 0;
2202} 2202}
2203 2203
2204#ifdef CONFIG_PM 2204#ifdef CONFIG_PM_SLEEP
2205static int hw_suspend(struct hw *hw) 2205static int hw_suspend(struct hw *hw)
2206{ 2206{
2207 struct pci_dev *pci = hw->pci; 2207 struct pci_dev *pci = hw->pci;
@@ -2250,7 +2250,7 @@ static struct hw ct20k2_preset __devinitdata = {
2250 .output_switch_put = hw_output_switch_put, 2250 .output_switch_put = hw_output_switch_put,
2251 .mic_source_switch_get = hw_mic_source_switch_get, 2251 .mic_source_switch_get = hw_mic_source_switch_get,
2252 .mic_source_switch_put = hw_mic_source_switch_put, 2252 .mic_source_switch_put = hw_mic_source_switch_put,
2253#ifdef CONFIG_PM 2253#ifdef CONFIG_PM_SLEEP
2254 .suspend = hw_suspend, 2254 .suspend = hw_suspend,
2255 .resume = hw_resume, 2255 .resume = hw_resume,
2256#endif 2256#endif
diff --git a/sound/pci/ctxfi/ctmixer.c b/sound/pci/ctxfi/ctmixer.c
index 0cc13eeef8da..48fe0e39c2be 100644
--- a/sound/pci/ctxfi/ctmixer.c
+++ b/sound/pci/ctxfi/ctmixer.c
@@ -1118,7 +1118,7 @@ mixer_set_input_right(struct ct_mixer *mixer,
1118 return 0; 1118 return 0;
1119} 1119}
1120 1120
1121#ifdef CONFIG_PM 1121#ifdef CONFIG_PM_SLEEP
1122static int mixer_resume(struct ct_mixer *mixer) 1122static int mixer_resume(struct ct_mixer *mixer)
1123{ 1123{
1124 int i, state; 1124 int i, state;
@@ -1188,7 +1188,7 @@ int ct_mixer_create(struct ct_atc *atc, struct ct_mixer **rmixer)
1188 mixer->get_output_ports = mixer_get_output_ports; 1188 mixer->get_output_ports = mixer_get_output_ports;
1189 mixer->set_input_left = mixer_set_input_left; 1189 mixer->set_input_left = mixer_set_input_left;
1190 mixer->set_input_right = mixer_set_input_right; 1190 mixer->set_input_right = mixer_set_input_right;
1191#ifdef CONFIG_PM 1191#ifdef CONFIG_PM_SLEEP
1192 mixer->resume = mixer_resume; 1192 mixer->resume = mixer_resume;
1193#endif 1193#endif
1194 1194
diff --git a/sound/pci/ctxfi/ctmixer.h b/sound/pci/ctxfi/ctmixer.h
index b009e989e77d..be881c639fee 100644
--- a/sound/pci/ctxfi/ctmixer.h
+++ b/sound/pci/ctxfi/ctmixer.h
@@ -56,7 +56,7 @@ struct ct_mixer {
56 enum MIXER_PORT_T type, struct rsc *rsc); 56 enum MIXER_PORT_T type, struct rsc *rsc);
57 int (*set_input_right)(struct ct_mixer *mixer, 57 int (*set_input_right)(struct ct_mixer *mixer,
58 enum MIXER_PORT_T type, struct rsc *rsc); 58 enum MIXER_PORT_T type, struct rsc *rsc);
59#ifdef CONFIG_PM 59#ifdef CONFIG_PM_SLEEP
60 int (*resume)(struct ct_mixer *mixer); 60 int (*resume)(struct ct_mixer *mixer);
61#endif 61#endif
62}; 62};
diff --git a/sound/pci/ctxfi/ctpcm.c b/sound/pci/ctxfi/ctpcm.c
index 2c8622617c8c..d021876901bb 100644
--- a/sound/pci/ctxfi/ctpcm.c
+++ b/sound/pci/ctxfi/ctpcm.c
@@ -427,7 +427,7 @@ int ct_alsa_pcm_create(struct ct_atc *atc,
427 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, 427 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
428 snd_dma_pci_data(atc->pci), 128*1024, 128*1024); 428 snd_dma_pci_data(atc->pci), 128*1024, 128*1024);
429 429
430#ifdef CONFIG_PM 430#ifdef CONFIG_PM_SLEEP
431 atc->pcms[device] = pcm; 431 atc->pcms[device] = pcm;
432#endif 432#endif
433 433
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c
index e002183ef8b2..07c07d752fd8 100644
--- a/sound/pci/ctxfi/xfi.c
+++ b/sound/pci/ctxfi/xfi.c
@@ -125,7 +125,7 @@ static void __devexit ct_card_remove(struct pci_dev *pci)
125 pci_set_drvdata(pci, NULL); 125 pci_set_drvdata(pci, NULL);
126} 126}
127 127
128#ifdef CONFIG_PM 128#ifdef CONFIG_PM_SLEEP
129static int ct_card_suspend(struct device *dev) 129static int ct_card_suspend(struct device *dev)
130{ 130{
131 struct snd_card *card = dev_get_drvdata(dev); 131 struct snd_card *card = dev_get_drvdata(dev);
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c
index 0ff754f180d0..abb0b86c41c9 100644
--- a/sound/pci/echoaudio/echoaudio.c
+++ b/sound/pci/echoaudio/echoaudio.c
@@ -46,7 +46,7 @@ static int get_firmware(const struct firmware **fw_entry,
46 int err; 46 int err;
47 char name[30]; 47 char name[30];
48 48
49#ifdef CONFIG_PM 49#ifdef CONFIG_PM_SLEEP
50 if (chip->fw_cache[fw_index]) { 50 if (chip->fw_cache[fw_index]) {
51 DE_ACT(("firmware requested: %s is cached\n", card_fw[fw_index].data)); 51 DE_ACT(("firmware requested: %s is cached\n", card_fw[fw_index].data));
52 *fw_entry = chip->fw_cache[fw_index]; 52 *fw_entry = chip->fw_cache[fw_index];
@@ -59,7 +59,7 @@ static int get_firmware(const struct firmware **fw_entry,
59 err = request_firmware(fw_entry, name, pci_device(chip)); 59 err = request_firmware(fw_entry, name, pci_device(chip));
60 if (err < 0) 60 if (err < 0)
61 snd_printk(KERN_ERR "get_firmware(): Firmware not available (%d)\n", err); 61 snd_printk(KERN_ERR "get_firmware(): Firmware not available (%d)\n", err);
62#ifdef CONFIG_PM 62#ifdef CONFIG_PM_SLEEP
63 else 63 else
64 chip->fw_cache[fw_index] = *fw_entry; 64 chip->fw_cache[fw_index] = *fw_entry;
65#endif 65#endif
@@ -70,7 +70,7 @@ static int get_firmware(const struct firmware **fw_entry,
70 70
71static void free_firmware(const struct firmware *fw_entry) 71static void free_firmware(const struct firmware *fw_entry)
72{ 72{
73#ifdef CONFIG_PM 73#ifdef CONFIG_PM_SLEEP
74 DE_ACT(("firmware not released (kept in cache)\n")); 74 DE_ACT(("firmware not released (kept in cache)\n"));
75#else 75#else
76 release_firmware(fw_entry); 76 release_firmware(fw_entry);
@@ -82,7 +82,7 @@ static void free_firmware(const struct firmware *fw_entry)
82 82
83static void free_firmware_cache(struct echoaudio *chip) 83static void free_firmware_cache(struct echoaudio *chip)
84{ 84{
85#ifdef CONFIG_PM 85#ifdef CONFIG_PM_SLEEP
86 int i; 86 int i;
87 87
88 for (i = 0; i < 8 ; i++) 88 for (i = 0; i < 8 ; i++)
@@ -2203,7 +2203,7 @@ ctl_error:
2203 2203
2204 2204
2205 2205
2206#if defined(CONFIG_PM) 2206#if defined(CONFIG_PM_SLEEP)
2207 2207
2208static int snd_echo_suspend(struct device *dev) 2208static int snd_echo_suspend(struct device *dev)
2209{ 2209{
@@ -2313,7 +2313,7 @@ static SIMPLE_DEV_PM_OPS(snd_echo_pm, snd_echo_suspend, snd_echo_resume);
2313#define SND_ECHO_PM_OPS &snd_echo_pm 2313#define SND_ECHO_PM_OPS &snd_echo_pm
2314#else 2314#else
2315#define SND_ECHO_PM_OPS NULL 2315#define SND_ECHO_PM_OPS NULL
2316#endif /* CONFIG_PM */ 2316#endif /* CONFIG_PM_SLEEP */
2317 2317
2318 2318
2319static void __devexit snd_echo_remove(struct pci_dev *pci) 2319static void __devexit snd_echo_remove(struct pci_dev *pci)
diff --git a/sound/pci/echoaudio/echoaudio.h b/sound/pci/echoaudio/echoaudio.h
index 1df974dcb5f4..e158369f5faa 100644
--- a/sound/pci/echoaudio/echoaudio.h
+++ b/sound/pci/echoaudio/echoaudio.h
@@ -449,7 +449,7 @@ struct echoaudio {
449 volatile u32 __iomem *dsp_registers; /* DSP's register base */ 449 volatile u32 __iomem *dsp_registers; /* DSP's register base */
450 u32 active_mask; /* Chs. active mask or 450 u32 active_mask; /* Chs. active mask or
451 * punks out */ 451 * punks out */
452#ifdef CONFIG_PM 452#ifdef CONFIG_PM_SLEEP
453 const struct firmware *fw_cache[8]; /* Cached firmwares */ 453 const struct firmware *fw_cache[8]; /* Cached firmwares */
454#endif 454#endif
455 455
diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c
index ddac4e6d660d..b7c1875ba90e 100644
--- a/sound/pci/emu10k1/emu10k1.c
+++ b/sound/pci/emu10k1/emu10k1.c
@@ -206,7 +206,7 @@ static void __devexit snd_card_emu10k1_remove(struct pci_dev *pci)
206} 206}
207 207
208 208
209#ifdef CONFIG_PM 209#ifdef CONFIG_PM_SLEEP
210static int snd_emu10k1_suspend(struct device *dev) 210static int snd_emu10k1_suspend(struct device *dev)
211{ 211{
212 struct pci_dev *pci = to_pci_dev(dev); 212 struct pci_dev *pci = to_pci_dev(dev);
@@ -268,7 +268,7 @@ static SIMPLE_DEV_PM_OPS(snd_emu10k1_pm, snd_emu10k1_suspend, snd_emu10k1_resume
268#define SND_EMU10K1_PM_OPS &snd_emu10k1_pm 268#define SND_EMU10K1_PM_OPS &snd_emu10k1_pm
269#else 269#else
270#define SND_EMU10K1_PM_OPS NULL 270#define SND_EMU10K1_PM_OPS NULL
271#endif /* CONFIG_PM */ 271#endif /* CONFIG_PM_SLEEP */
272 272
273static struct pci_driver emu10k1_driver = { 273static struct pci_driver emu10k1_driver = {
274 .name = KBUILD_MODNAME, 274 .name = KBUILD_MODNAME,
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c
index 754924081d0a..bed4485f34f6 100644
--- a/sound/pci/emu10k1/emu10k1_main.c
+++ b/sound/pci/emu10k1/emu10k1_main.c
@@ -1241,7 +1241,7 @@ static int snd_emu10k1_emu1010_init(struct snd_emu10k1 *emu)
1241 * Create the EMU10K1 instance 1241 * Create the EMU10K1 instance
1242 */ 1242 */
1243 1243
1244#ifdef CONFIG_PM 1244#ifdef CONFIG_PM_SLEEP
1245static int alloc_pm_buffer(struct snd_emu10k1 *emu); 1245static int alloc_pm_buffer(struct snd_emu10k1 *emu);
1246static void free_pm_buffer(struct snd_emu10k1 *emu); 1246static void free_pm_buffer(struct snd_emu10k1 *emu);
1247#endif 1247#endif
@@ -1275,7 +1275,7 @@ static int snd_emu10k1_free(struct snd_emu10k1 *emu)
1275 snd_dma_free_pages(&emu->ptb_pages); 1275 snd_dma_free_pages(&emu->ptb_pages);
1276 vfree(emu->page_ptr_table); 1276 vfree(emu->page_ptr_table);
1277 vfree(emu->page_addr_table); 1277 vfree(emu->page_addr_table);
1278#ifdef CONFIG_PM 1278#ifdef CONFIG_PM_SLEEP
1279 free_pm_buffer(emu); 1279 free_pm_buffer(emu);
1280#endif 1280#endif
1281 if (emu->port) 1281 if (emu->port)
@@ -1971,7 +1971,7 @@ int __devinit snd_emu10k1_create(struct snd_card *card,
1971 err = snd_emu10k1_init(emu, enable_ir, 0); 1971 err = snd_emu10k1_init(emu, enable_ir, 0);
1972 if (err < 0) 1972 if (err < 0)
1973 goto error; 1973 goto error;
1974#ifdef CONFIG_PM 1974#ifdef CONFIG_PM_SLEEP
1975 err = alloc_pm_buffer(emu); 1975 err = alloc_pm_buffer(emu);
1976 if (err < 0) 1976 if (err < 0)
1977 goto error; 1977 goto error;
@@ -2000,7 +2000,7 @@ int __devinit snd_emu10k1_create(struct snd_card *card,
2000 return err; 2000 return err;
2001} 2001}
2002 2002
2003#ifdef CONFIG_PM 2003#ifdef CONFIG_PM_SLEEP
2004static unsigned char saved_regs[] = { 2004static unsigned char saved_regs[] = {
2005 CPF, PTRX, CVCF, VTFT, Z1, Z2, PSST, DSL, CCCA, CCR, CLP, 2005 CPF, PTRX, CVCF, VTFT, Z1, Z2, PSST, DSL, CCCA, CCR, CLP,
2006 FXRT, MAPA, MAPB, ENVVOL, ATKHLDV, DCYSUSV, LFOVAL1, ENVVAL, 2006 FXRT, MAPA, MAPB, ENVVOL, ATKHLDV, DCYSUSV, LFOVAL1, ENVVAL,
diff --git a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c
index dae4050ede5c..52419959178c 100644
--- a/sound/pci/emu10k1/emufx.c
+++ b/sound/pci/emu10k1/emufx.c
@@ -2646,7 +2646,7 @@ int __devinit snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, struct
2646 return 0; 2646 return 0;
2647} 2647}
2648 2648
2649#ifdef CONFIG_PM 2649#ifdef CONFIG_PM_SLEEP
2650int __devinit snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu) 2650int __devinit snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu)
2651{ 2651{
2652 int len; 2652 int len;
diff --git a/sound/pci/emu10k1/p16v.c b/sound/pci/emu10k1/p16v.c
index a81dc44228ea..88cec6b7dd41 100644
--- a/sound/pci/emu10k1/p16v.c
+++ b/sound/pci/emu10k1/p16v.c
@@ -893,7 +893,7 @@ int __devinit snd_p16v_mixer(struct snd_emu10k1 *emu)
893 return 0; 893 return 0;
894} 894}
895 895
896#ifdef CONFIG_PM 896#ifdef CONFIG_PM_SLEEP
897 897
898#define NUM_CHS 1 /* up to 4, but only first channel is used */ 898#define NUM_CHS 1 /* up to 4, but only first channel is used */
899 899
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c
index f7e6f73186e1..2ba58d365959 100644
--- a/sound/pci/ens1370.c
+++ b/sound/pci/ens1370.c
@@ -2032,7 +2032,7 @@ static void snd_ensoniq_chip_init(struct ensoniq *ensoniq)
2032 synchronize_irq(ensoniq->irq); 2032 synchronize_irq(ensoniq->irq);
2033} 2033}
2034 2034
2035#ifdef CONFIG_PM 2035#ifdef CONFIG_PM_SLEEP
2036static int snd_ensoniq_suspend(struct device *dev) 2036static int snd_ensoniq_suspend(struct device *dev)
2037{ 2037{
2038 struct pci_dev *pci = to_pci_dev(dev); 2038 struct pci_dev *pci = to_pci_dev(dev);
@@ -2094,7 +2094,7 @@ static SIMPLE_DEV_PM_OPS(snd_ensoniq_pm, snd_ensoniq_suspend, snd_ensoniq_resume
2094#define SND_ENSONIQ_PM_OPS &snd_ensoniq_pm 2094#define SND_ENSONIQ_PM_OPS &snd_ensoniq_pm
2095#else 2095#else
2096#define SND_ENSONIQ_PM_OPS NULL 2096#define SND_ENSONIQ_PM_OPS NULL
2097#endif /* CONFIG_PM */ 2097#endif /* CONFIG_PM_SLEEP */
2098 2098
2099static int __devinit snd_ensoniq_create(struct snd_card *card, 2099static int __devinit snd_ensoniq_create(struct snd_card *card,
2100 struct pci_dev *pci, 2100 struct pci_dev *pci,
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c
index dbb81807bc1a..394c5d413530 100644
--- a/sound/pci/es1938.c
+++ b/sound/pci/es1938.c
@@ -236,7 +236,7 @@ struct es1938 {
236#ifdef SUPPORT_JOYSTICK 236#ifdef SUPPORT_JOYSTICK
237 struct gameport *gameport; 237 struct gameport *gameport;
238#endif 238#endif
239#ifdef CONFIG_PM 239#ifdef CONFIG_PM_SLEEP
240 unsigned char saved_regs[SAVED_REG_SIZE]; 240 unsigned char saved_regs[SAVED_REG_SIZE];
241#endif 241#endif
242}; 242};
@@ -1456,7 +1456,7 @@ static void snd_es1938_chip_init(struct es1938 *chip)
1456 outb(0, SLDM_REG(chip, DMACLEAR)); 1456 outb(0, SLDM_REG(chip, DMACLEAR));
1457} 1457}
1458 1458
1459#ifdef CONFIG_PM 1459#ifdef CONFIG_PM_SLEEP
1460/* 1460/*
1461 * PM support 1461 * PM support
1462 */ 1462 */
@@ -1536,7 +1536,7 @@ static SIMPLE_DEV_PM_OPS(es1938_pm, es1938_suspend, es1938_resume);
1536#define ES1938_PM_OPS &es1938_pm 1536#define ES1938_PM_OPS &es1938_pm
1537#else 1537#else
1538#define ES1938_PM_OPS NULL 1538#define ES1938_PM_OPS NULL
1539#endif /* CONFIG_PM */ 1539#endif /* CONFIG_PM_SLEEP */
1540 1540
1541#ifdef SUPPORT_JOYSTICK 1541#ifdef SUPPORT_JOYSTICK
1542static int __devinit snd_es1938_create_gameport(struct es1938 *chip) 1542static int __devinit snd_es1938_create_gameport(struct es1938 *chip)
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c
index fb4c90b99c00..5d0e568fdea1 100644
--- a/sound/pci/es1968.c
+++ b/sound/pci/es1968.c
@@ -491,7 +491,7 @@ struct esschan {
491 /* linked list */ 491 /* linked list */
492 struct list_head list; 492 struct list_head list;
493 493
494#ifdef CONFIG_PM 494#ifdef CONFIG_PM_SLEEP
495 u16 wc_map[4]; 495 u16 wc_map[4];
496#endif 496#endif
497}; 497};
@@ -544,7 +544,7 @@ struct es1968 {
544 struct list_head substream_list; 544 struct list_head substream_list;
545 spinlock_t substream_lock; 545 spinlock_t substream_lock;
546 546
547#ifdef CONFIG_PM 547#ifdef CONFIG_PM_SLEEP
548 u16 apu_map[NR_APUS][NR_APU_REGS]; 548 u16 apu_map[NR_APUS][NR_APU_REGS];
549#endif 549#endif
550 550
@@ -706,7 +706,7 @@ static void __apu_set_register(struct es1968 *chip, u16 channel, u8 reg, u16 dat
706{ 706{
707 if (snd_BUG_ON(channel >= NR_APUS)) 707 if (snd_BUG_ON(channel >= NR_APUS))
708 return; 708 return;
709#ifdef CONFIG_PM 709#ifdef CONFIG_PM_SLEEP
710 chip->apu_map[channel][reg] = data; 710 chip->apu_map[channel][reg] = data;
711#endif 711#endif
712 reg |= (channel << 4); 712 reg |= (channel << 4);
@@ -993,7 +993,7 @@ static void snd_es1968_program_wavecache(struct es1968 *chip, struct esschan *es
993 /* set the wavecache control reg */ 993 /* set the wavecache control reg */
994 wave_set_register(chip, es->apu[channel] << 3, tmpval); 994 wave_set_register(chip, es->apu[channel] << 3, tmpval);
995 995
996#ifdef CONFIG_PM 996#ifdef CONFIG_PM_SLEEP
997 es->wc_map[channel] = tmpval; 997 es->wc_map[channel] = tmpval;
998#endif 998#endif
999} 999}
@@ -2377,7 +2377,7 @@ static void snd_es1968_start_irq(struct es1968 *chip)
2377 outw(w, chip->io_port + ESM_PORT_HOST_IRQ); 2377 outw(w, chip->io_port + ESM_PORT_HOST_IRQ);
2378} 2378}
2379 2379
2380#ifdef CONFIG_PM 2380#ifdef CONFIG_PM_SLEEP
2381/* 2381/*
2382 * PM support 2382 * PM support
2383 */ 2383 */
@@ -2461,7 +2461,7 @@ static SIMPLE_DEV_PM_OPS(es1968_pm, es1968_suspend, es1968_resume);
2461#define ES1968_PM_OPS &es1968_pm 2461#define ES1968_PM_OPS &es1968_pm
2462#else 2462#else
2463#define ES1968_PM_OPS NULL 2463#define ES1968_PM_OPS NULL
2464#endif /* CONFIG_PM */ 2464#endif /* CONFIG_PM_SLEEP */
2465 2465
2466#ifdef SUPPORT_JOYSTICK 2466#ifdef SUPPORT_JOYSTICK
2467#define JOYSTICK_ADDR 0x200 2467#define JOYSTICK_ADDR 0x200
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c
index 522c8706f244..ce3e548de41d 100644
--- a/sound/pci/fm801.c
+++ b/sound/pci/fm801.c
@@ -205,7 +205,7 @@ struct fm801 {
205 struct snd_tea575x tea; 205 struct snd_tea575x tea;
206#endif 206#endif
207 207
208#ifdef CONFIG_PM 208#ifdef CONFIG_PM_SLEEP
209 u16 saved_regs[0x20]; 209 u16 saved_regs[0x20];
210#endif 210#endif
211}; 211};
@@ -1361,7 +1361,7 @@ static void __devexit snd_card_fm801_remove(struct pci_dev *pci)
1361 pci_set_drvdata(pci, NULL); 1361 pci_set_drvdata(pci, NULL);
1362} 1362}
1363 1363
1364#ifdef CONFIG_PM 1364#ifdef CONFIG_PM_SLEEP
1365static unsigned char saved_regs[] = { 1365static unsigned char saved_regs[] = {
1366 FM801_PCM_VOL, FM801_I2S_VOL, FM801_FM_VOL, FM801_REC_SRC, 1366 FM801_PCM_VOL, FM801_I2S_VOL, FM801_FM_VOL, FM801_REC_SRC,
1367 FM801_PLY_CTRL, FM801_PLY_COUNT, FM801_PLY_BUF1, FM801_PLY_BUF2, 1367 FM801_PLY_CTRL, FM801_PLY_COUNT, FM801_PLY_BUF1, FM801_PLY_BUF2,
@@ -1421,7 +1421,7 @@ static SIMPLE_DEV_PM_OPS(snd_fm801_pm, snd_fm801_suspend, snd_fm801_resume);
1421#define SND_FM801_PM_OPS &snd_fm801_pm 1421#define SND_FM801_PM_OPS &snd_fm801_pm
1422#else 1422#else
1423#define SND_FM801_PM_OPS NULL 1423#define SND_FM801_PM_OPS NULL
1424#endif /* CONFIG_PM */ 1424#endif /* CONFIG_PM_SLEEP */
1425 1425
1426static struct pci_driver fm801_driver = { 1426static struct pci_driver fm801_driver = {
1427 .name = KBUILD_MODNAME, 1427 .name = KBUILD_MODNAME,
diff --git a/sound/pci/ice1712/aureon.c b/sound/pci/ice1712/aureon.c
index 3e4f8c12ffce..20bcddea2eab 100644
--- a/sound/pci/ice1712/aureon.c
+++ b/sound/pci/ice1712/aureon.c
@@ -2103,7 +2103,7 @@ static int aureon_reset(struct snd_ice1712 *ice)
2103/* 2103/*
2104 * suspend/resume 2104 * suspend/resume
2105 */ 2105 */
2106#ifdef CONFIG_PM 2106#ifdef CONFIG_PM_SLEEP
2107static int aureon_resume(struct snd_ice1712 *ice) 2107static int aureon_resume(struct snd_ice1712 *ice)
2108{ 2108{
2109 struct aureon_spec *spec = ice->spec; 2109 struct aureon_spec *spec = ice->spec;
@@ -2160,7 +2160,7 @@ static int __devinit aureon_init(struct snd_ice1712 *ice)
2160 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); 2160 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]);
2161 } 2161 }
2162 2162
2163#ifdef CONFIG_PM 2163#ifdef CONFIG_PM_SLEEP
2164 ice->pm_resume = aureon_resume; 2164 ice->pm_resume = aureon_resume;
2165 ice->pm_suspend_enabled = 1; 2165 ice->pm_suspend_enabled = 1;
2166#endif 2166#endif
diff --git a/sound/pci/ice1712/ice1712.h b/sound/pci/ice1712/ice1712.h
index 0da778a69ef8..d0e7d87f09f0 100644
--- a/sound/pci/ice1712/ice1712.h
+++ b/sound/pci/ice1712/ice1712.h
@@ -384,7 +384,7 @@ struct snd_ice1712 {
384 char **ext_clock_names; 384 char **ext_clock_names;
385 int ext_clock_count; 385 int ext_clock_count;
386 void (*pro_open)(struct snd_ice1712 *, struct snd_pcm_substream *); 386 void (*pro_open)(struct snd_ice1712 *, struct snd_pcm_substream *);
387#ifdef CONFIG_PM 387#ifdef CONFIG_PM_SLEEP
388 int (*pm_suspend)(struct snd_ice1712 *); 388 int (*pm_suspend)(struct snd_ice1712 *);
389 int (*pm_resume)(struct snd_ice1712 *); 389 int (*pm_resume)(struct snd_ice1712 *);
390 unsigned int pm_suspend_enabled:1; 390 unsigned int pm_suspend_enabled:1;
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c
index bed9f34f4efe..3050a5279253 100644
--- a/sound/pci/ice1712/ice1724.c
+++ b/sound/pci/ice1712/ice1724.c
@@ -2792,7 +2792,7 @@ static void __devexit snd_vt1724_remove(struct pci_dev *pci)
2792 pci_set_drvdata(pci, NULL); 2792 pci_set_drvdata(pci, NULL);
2793} 2793}
2794 2794
2795#ifdef CONFIG_PM 2795#ifdef CONFIG_PM_SLEEP
2796static int snd_vt1724_suspend(struct device *dev) 2796static int snd_vt1724_suspend(struct device *dev)
2797{ 2797{
2798 struct pci_dev *pci = to_pci_dev(dev); 2798 struct pci_dev *pci = to_pci_dev(dev);
@@ -2878,7 +2878,7 @@ static SIMPLE_DEV_PM_OPS(snd_vt1724_pm, snd_vt1724_suspend, snd_vt1724_resume);
2878#define SND_VT1724_PM_OPS &snd_vt1724_pm 2878#define SND_VT1724_PM_OPS &snd_vt1724_pm
2879#else 2879#else
2880#define SND_VT1724_PM_OPS NULL 2880#define SND_VT1724_PM_OPS NULL
2881#endif /* CONFIG_PM */ 2881#endif /* CONFIG_PM_SLEEP */
2882 2882
2883static struct pci_driver vt1724_driver = { 2883static struct pci_driver vt1724_driver = {
2884 .name = KBUILD_MODNAME, 2884 .name = KBUILD_MODNAME,
diff --git a/sound/pci/ice1712/juli.c b/sound/pci/ice1712/juli.c
index 98bc3b7681b5..14fd536b6452 100644
--- a/sound/pci/ice1712/juli.c
+++ b/sound/pci/ice1712/juli.c
@@ -486,7 +486,7 @@ static int __devinit juli_add_controls(struct snd_ice1712 *ice)
486 * suspend/resume 486 * suspend/resume
487 * */ 487 * */
488 488
489#ifdef CONFIG_PM 489#ifdef CONFIG_PM_SLEEP
490static int juli_resume(struct snd_ice1712 *ice) 490static int juli_resume(struct snd_ice1712 *ice)
491{ 491{
492 struct snd_akm4xxx *ak = ice->akm; 492 struct snd_akm4xxx *ak = ice->akm;
@@ -652,7 +652,7 @@ static int __devinit juli_init(struct snd_ice1712 *ice)
652 652
653 ice->spdif.ops.open = juli_spdif_in_open; 653 ice->spdif.ops.open = juli_spdif_in_open;
654 654
655#ifdef CONFIG_PM 655#ifdef CONFIG_PM_SLEEP
656 ice->pm_resume = juli_resume; 656 ice->pm_resume = juli_resume;
657 ice->pm_suspend = juli_suspend; 657 ice->pm_suspend = juli_suspend;
658 ice->pm_suspend_enabled = 1; 658 ice->pm_suspend_enabled = 1;
diff --git a/sound/pci/ice1712/prodigy_hifi.c b/sound/pci/ice1712/prodigy_hifi.c
index 764cc93dbca4..7f2b63f97e61 100644
--- a/sound/pci/ice1712/prodigy_hifi.c
+++ b/sound/pci/ice1712/prodigy_hifi.c
@@ -1099,7 +1099,7 @@ static void ak4396_init(struct snd_ice1712 *ice)
1099 ak4396_write(ice, ak4396_inits[i], ak4396_inits[i+1]); 1099 ak4396_write(ice, ak4396_inits[i], ak4396_inits[i+1]);
1100} 1100}
1101 1101
1102#ifdef CONFIG_PM 1102#ifdef CONFIG_PM_SLEEP
1103static int prodigy_hd2_resume(struct snd_ice1712 *ice) 1103static int prodigy_hd2_resume(struct snd_ice1712 *ice)
1104{ 1104{
1105 /* initialize ak4396 codec and restore previous mixer volumes */ 1105 /* initialize ak4396 codec and restore previous mixer volumes */
@@ -1140,7 +1140,7 @@ static int __devinit prodigy_hd2_init(struct snd_ice1712 *ice)
1140 return -ENOMEM; 1140 return -ENOMEM;
1141 ice->spec = spec; 1141 ice->spec = spec;
1142 1142
1143#ifdef CONFIG_PM 1143#ifdef CONFIG_PM_SLEEP
1144 ice->pm_resume = &prodigy_hd2_resume; 1144 ice->pm_resume = &prodigy_hd2_resume;
1145 ice->pm_suspend_enabled = 1; 1145 ice->pm_suspend_enabled = 1;
1146#endif 1146#endif
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c
index cd553f592e2d..5c4115289a9a 100644
--- a/sound/pci/intel8x0.c
+++ b/sound/pci/intel8x0.c
@@ -2620,7 +2620,7 @@ static int snd_intel8x0_free(struct intel8x0 *chip)
2620 return 0; 2620 return 0;
2621} 2621}
2622 2622
2623#ifdef CONFIG_PM 2623#ifdef CONFIG_PM_SLEEP
2624/* 2624/*
2625 * power management 2625 * power management
2626 */ 2626 */
@@ -2741,7 +2741,7 @@ static SIMPLE_DEV_PM_OPS(intel8x0_pm, intel8x0_suspend, intel8x0_resume);
2741#define INTEL8X0_PM_OPS &intel8x0_pm 2741#define INTEL8X0_PM_OPS &intel8x0_pm
2742#else 2742#else
2743#define INTEL8X0_PM_OPS NULL 2743#define INTEL8X0_PM_OPS NULL
2744#endif /* CONFIG_PM */ 2744#endif /* CONFIG_PM_SLEEP */
2745 2745
2746#define INTEL8X0_TESTBUF_SIZE 32768 /* enough large for one shot */ 2746#define INTEL8X0_TESTBUF_SIZE 32768 /* enough large for one shot */
2747 2747
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c
index da44bb3f8e7a..4d551736531e 100644
--- a/sound/pci/intel8x0m.c
+++ b/sound/pci/intel8x0m.c
@@ -1008,7 +1008,7 @@ static int snd_intel8x0m_free(struct intel8x0m *chip)
1008 return 0; 1008 return 0;
1009} 1009}
1010 1010
1011#ifdef CONFIG_PM 1011#ifdef CONFIG_PM_SLEEP
1012/* 1012/*
1013 * power management 1013 * power management
1014 */ 1014 */
@@ -1067,7 +1067,7 @@ static SIMPLE_DEV_PM_OPS(intel8x0m_pm, intel8x0m_suspend, intel8x0m_resume);
1067#define INTEL8X0M_PM_OPS &intel8x0m_pm 1067#define INTEL8X0M_PM_OPS &intel8x0m_pm
1068#else 1068#else
1069#define INTEL8X0M_PM_OPS NULL 1069#define INTEL8X0M_PM_OPS NULL
1070#endif /* CONFIG_PM */ 1070#endif /* CONFIG_PM_SLEEP */
1071 1071
1072#ifdef CONFIG_PROC_FS 1072#ifdef CONFIG_PROC_FS
1073static void snd_intel8x0m_proc_read(struct snd_info_entry * entry, 1073static void snd_intel8x0m_proc_read(struct snd_info_entry * entry,
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c
index c85d1ffcc955..eb3cd3a4315e 100644
--- a/sound/pci/maestro3.c
+++ b/sound/pci/maestro3.c
@@ -789,7 +789,7 @@ struct snd_m3 {
789 789
790 unsigned int in_suspend; 790 unsigned int in_suspend;
791 791
792#ifdef CONFIG_PM 792#ifdef CONFIG_PM_SLEEP
793 u16 *suspend_mem; 793 u16 *suspend_mem;
794#endif 794#endif
795 795
@@ -2368,7 +2368,7 @@ static int snd_m3_free(struct snd_m3 *chip)
2368 outw(0, chip->iobase + HOST_INT_CTRL); /* disable ints */ 2368 outw(0, chip->iobase + HOST_INT_CTRL); /* disable ints */
2369 } 2369 }
2370 2370
2371#ifdef CONFIG_PM 2371#ifdef CONFIG_PM_SLEEP
2372 vfree(chip->suspend_mem); 2372 vfree(chip->suspend_mem);
2373#endif 2373#endif
2374 2374
@@ -2390,7 +2390,7 @@ static int snd_m3_free(struct snd_m3 *chip)
2390/* 2390/*
2391 * APM support 2391 * APM support
2392 */ 2392 */
2393#ifdef CONFIG_PM 2393#ifdef CONFIG_PM_SLEEP
2394static int m3_suspend(struct device *dev) 2394static int m3_suspend(struct device *dev)
2395{ 2395{
2396 struct pci_dev *pci = to_pci_dev(dev); 2396 struct pci_dev *pci = to_pci_dev(dev);
@@ -2485,7 +2485,7 @@ static SIMPLE_DEV_PM_OPS(m3_pm, m3_suspend, m3_resume);
2485#define M3_PM_OPS &m3_pm 2485#define M3_PM_OPS &m3_pm
2486#else 2486#else
2487#define M3_PM_OPS NULL 2487#define M3_PM_OPS NULL
2488#endif /* CONFIG_PM */ 2488#endif /* CONFIG_PM_SLEEP */
2489 2489
2490#ifdef CONFIG_SND_MAESTRO3_INPUT 2490#ifdef CONFIG_SND_MAESTRO3_INPUT
2491static int __devinit snd_m3_input_register(struct snd_m3 *chip) 2491static int __devinit snd_m3_input_register(struct snd_m3 *chip)
@@ -2656,7 +2656,7 @@ snd_m3_create(struct snd_card *card, struct pci_dev *pci,
2656 } 2656 }
2657 chip->irq = pci->irq; 2657 chip->irq = pci->irq;
2658 2658
2659#ifdef CONFIG_PM 2659#ifdef CONFIG_PM_SLEEP
2660 chip->suspend_mem = vmalloc(sizeof(u16) * (REV_B_CODE_MEMORY_LENGTH + REV_B_DATA_MEMORY_LENGTH)); 2660 chip->suspend_mem = vmalloc(sizeof(u16) * (REV_B_CODE_MEMORY_LENGTH + REV_B_DATA_MEMORY_LENGTH));
2661 if (chip->suspend_mem == NULL) 2661 if (chip->suspend_mem == NULL)
2662 snd_printk(KERN_WARNING "can't allocate apm buffer\n"); 2662 snd_printk(KERN_WARNING "can't allocate apm buffer\n");
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c
index 465cff25b146..e80e9a1e84aa 100644
--- a/sound/pci/nm256/nm256.c
+++ b/sound/pci/nm256/nm256.c
@@ -1377,7 +1377,7 @@ snd_nm256_peek_for_sig(struct nm256 *chip)
1377 return 0; 1377 return 0;
1378} 1378}
1379 1379
1380#ifdef CONFIG_PM 1380#ifdef CONFIG_PM_SLEEP
1381/* 1381/*
1382 * APM event handler, so the card is properly reinitialized after a power 1382 * APM event handler, so the card is properly reinitialized after a power
1383 * event. 1383 * event.
@@ -1441,7 +1441,7 @@ static SIMPLE_DEV_PM_OPS(nm256_pm, nm256_suspend, nm256_resume);
1441#define NM256_PM_OPS &nm256_pm 1441#define NM256_PM_OPS &nm256_pm
1442#else 1442#else
1443#define NM256_PM_OPS NULL 1443#define NM256_PM_OPS NULL
1444#endif /* CONFIG_PM */ 1444#endif /* CONFIG_PM_SLEEP */
1445 1445
1446static int snd_nm256_free(struct nm256 *chip) 1446static int snd_nm256_free(struct nm256 *chip)
1447{ 1447{
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c
index 37520a2b4dcf..2becae155a48 100644
--- a/sound/pci/oxygen/oxygen.c
+++ b/sound/pci/oxygen/oxygen.c
@@ -872,7 +872,7 @@ static struct pci_driver oxygen_driver = {
872 .id_table = oxygen_ids, 872 .id_table = oxygen_ids,
873 .probe = generic_oxygen_probe, 873 .probe = generic_oxygen_probe,
874 .remove = __devexit_p(oxygen_pci_remove), 874 .remove = __devexit_p(oxygen_pci_remove),
875#ifdef CONFIG_PM 875#ifdef CONFIG_PM_SLEEP
876 .driver = { 876 .driver = {
877 .pm = &oxygen_pci_pm, 877 .pm = &oxygen_pci_pm,
878 }, 878 },
diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h
index 7112a89fb8bd..09a24b24958b 100644
--- a/sound/pci/oxygen/oxygen.h
+++ b/sound/pci/oxygen/oxygen.h
@@ -161,7 +161,7 @@ int oxygen_pci_probe(struct pci_dev *pci, int index, char *id,
161 ) 161 )
162 ); 162 );
163void oxygen_pci_remove(struct pci_dev *pci); 163void oxygen_pci_remove(struct pci_dev *pci);
164#ifdef CONFIG_PM 164#ifdef CONFIG_PM_SLEEP
165extern const struct dev_pm_ops oxygen_pci_pm; 165extern const struct dev_pm_ops oxygen_pci_pm;
166#endif 166#endif
167void oxygen_pci_shutdown(struct pci_dev *pci); 167void oxygen_pci_shutdown(struct pci_dev *pci);
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c
index ab8738e21ad1..25697584b94c 100644
--- a/sound/pci/oxygen/oxygen_lib.c
+++ b/sound/pci/oxygen/oxygen_lib.c
@@ -726,7 +726,7 @@ void oxygen_pci_remove(struct pci_dev *pci)
726} 726}
727EXPORT_SYMBOL(oxygen_pci_remove); 727EXPORT_SYMBOL(oxygen_pci_remove);
728 728
729#ifdef CONFIG_PM 729#ifdef CONFIG_PM_SLEEP
730static int oxygen_pci_suspend(struct device *dev) 730static int oxygen_pci_suspend(struct device *dev)
731{ 731{
732 struct pci_dev *pci = to_pci_dev(dev); 732 struct pci_dev *pci = to_pci_dev(dev);
@@ -824,7 +824,7 @@ static int oxygen_pci_resume(struct device *dev)
824 824
825SIMPLE_DEV_PM_OPS(oxygen_pci_pm, oxygen_pci_suspend, oxygen_pci_resume); 825SIMPLE_DEV_PM_OPS(oxygen_pci_pm, oxygen_pci_suspend, oxygen_pci_resume);
826EXPORT_SYMBOL(oxygen_pci_pm); 826EXPORT_SYMBOL(oxygen_pci_pm);
827#endif /* CONFIG_PM */ 827#endif /* CONFIG_PM_SLEEP */
828 828
829void oxygen_pci_shutdown(struct pci_dev *pci) 829void oxygen_pci_shutdown(struct pci_dev *pci)
830{ 830{
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c
index d3b606b69f3b..3d71423b23bc 100644
--- a/sound/pci/oxygen/virtuoso.c
+++ b/sound/pci/oxygen/virtuoso.c
@@ -93,7 +93,7 @@ static struct pci_driver xonar_driver = {
93 .id_table = xonar_ids, 93 .id_table = xonar_ids,
94 .probe = xonar_probe, 94 .probe = xonar_probe,
95 .remove = __devexit_p(oxygen_pci_remove), 95 .remove = __devexit_p(oxygen_pci_remove),
96#ifdef CONFIG_PM 96#ifdef CONFIG_PM_SLEEP
97 .driver = { 97 .driver = {
98 .pm = &oxygen_pci_pm, 98 .pm = &oxygen_pci_pm,
99 }, 99 },
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c
index 760ee467cd9a..7d291542c5ba 100644
--- a/sound/pci/riptide/riptide.c
+++ b/sound/pci/riptide/riptide.c
@@ -464,7 +464,7 @@ struct snd_riptide {
464 464
465 unsigned long received_irqs; 465 unsigned long received_irqs;
466 unsigned long handled_irqs; 466 unsigned long handled_irqs;
467#ifdef CONFIG_PM 467#ifdef CONFIG_PM_SLEEP
468 int in_suspend; 468 int in_suspend;
469#endif 469#endif
470}; 470};
@@ -1150,7 +1150,7 @@ static void riptide_handleirq(unsigned long dev_id)
1150 } 1150 }
1151} 1151}
1152 1152
1153#ifdef CONFIG_PM 1153#ifdef CONFIG_PM_SLEEP
1154static int riptide_suspend(struct device *dev) 1154static int riptide_suspend(struct device *dev)
1155{ 1155{
1156 struct pci_dev *pci = to_pci_dev(dev); 1156 struct pci_dev *pci = to_pci_dev(dev);
@@ -1193,7 +1193,7 @@ static SIMPLE_DEV_PM_OPS(riptide_pm, riptide_suspend, riptide_resume);
1193#define RIPTIDE_PM_OPS &riptide_pm 1193#define RIPTIDE_PM_OPS &riptide_pm
1194#else 1194#else
1195#define RIPTIDE_PM_OPS NULL 1195#define RIPTIDE_PM_OPS NULL
1196#endif /* CONFIG_PM */ 1196#endif /* CONFIG_PM_SLEEP */
1197 1197
1198static int try_to_load_firmware(struct cmdif *cif, struct snd_riptide *chip) 1198static int try_to_load_firmware(struct cmdif *cif, struct snd_riptide *chip)
1199{ 1199{
diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c
index 512434efcc31..535efe295075 100644
--- a/sound/pci/sis7019.c
+++ b/sound/pci/sis7019.c
@@ -103,7 +103,7 @@ struct voice {
103 * we're not doing power management, we still need to allocate a page 103 * we're not doing power management, we still need to allocate a page
104 * for the silence buffer. 104 * for the silence buffer.
105 */ 105 */
106#ifdef CONFIG_PM 106#ifdef CONFIG_PM_SLEEP
107#define SIS_SUSPEND_PAGES 4 107#define SIS_SUSPEND_PAGES 4
108#else 108#else
109#define SIS_SUSPEND_PAGES 1 109#define SIS_SUSPEND_PAGES 1
@@ -1208,7 +1208,7 @@ static int sis_chip_init(struct sis7019 *sis)
1208 return 0; 1208 return 0;
1209} 1209}
1210 1210
1211#ifdef CONFIG_PM 1211#ifdef CONFIG_PM_SLEEP
1212static int sis_suspend(struct device *dev) 1212static int sis_suspend(struct device *dev)
1213{ 1213{
1214 struct pci_dev *pci = to_pci_dev(dev); 1214 struct pci_dev *pci = to_pci_dev(dev);
@@ -1305,7 +1305,7 @@ static SIMPLE_DEV_PM_OPS(sis_pm, sis_suspend, sis_resume);
1305#define SIS_PM_OPS &sis_pm 1305#define SIS_PM_OPS &sis_pm
1306#else 1306#else
1307#define SIS_PM_OPS NULL 1307#define SIS_PM_OPS NULL
1308#endif /* CONFIG_PM */ 1308#endif /* CONFIG_PM_SLEEP */
1309 1309
1310static int sis_alloc_suspend(struct sis7019 *sis) 1310static int sis_alloc_suspend(struct sis7019 *sis)
1311{ 1311{
diff --git a/sound/pci/trident/trident.c b/sound/pci/trident/trident.c
index d36e6ca147e1..8a6f1f76e870 100644
--- a/sound/pci/trident/trident.c
+++ b/sound/pci/trident/trident.c
@@ -177,7 +177,7 @@ static struct pci_driver trident_driver = {
177 .id_table = snd_trident_ids, 177 .id_table = snd_trident_ids,
178 .probe = snd_trident_probe, 178 .probe = snd_trident_probe,
179 .remove = __devexit_p(snd_trident_remove), 179 .remove = __devexit_p(snd_trident_remove),
180#ifdef CONFIG_PM 180#ifdef CONFIG_PM_SLEEP
181 .driver = { 181 .driver = {
182 .pm = &snd_trident_pm, 182 .pm = &snd_trident_pm,
183 }, 183 },
diff --git a/sound/pci/trident/trident_main.c b/sound/pci/trident/trident_main.c
index 94011dcae731..06b10d1a76e5 100644
--- a/sound/pci/trident/trident_main.c
+++ b/sound/pci/trident/trident_main.c
@@ -3919,7 +3919,7 @@ static void snd_trident_clear_voices(struct snd_trident * trident, unsigned shor
3919 } 3919 }
3920} 3920}
3921 3921
3922#ifdef CONFIG_PM 3922#ifdef CONFIG_PM_SLEEP
3923static int snd_trident_suspend(struct device *dev) 3923static int snd_trident_suspend(struct device *dev)
3924{ 3924{
3925 struct pci_dev *pci = to_pci_dev(dev); 3925 struct pci_dev *pci = to_pci_dev(dev);
@@ -3983,4 +3983,4 @@ static int snd_trident_resume(struct device *dev)
3983} 3983}
3984 3984
3985SIMPLE_DEV_PM_OPS(snd_trident_pm, snd_trident_suspend, snd_trident_resume); 3985SIMPLE_DEV_PM_OPS(snd_trident_pm, snd_trident_suspend, snd_trident_resume);
3986#endif /* CONFIG_PM */ 3986#endif /* CONFIG_PM_SLEEP */
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c
index 0eb7245dd362..e3d32e2d574e 100644
--- a/sound/pci/via82xx.c
+++ b/sound/pci/via82xx.c
@@ -362,7 +362,7 @@ struct via82xx {
362 362
363 unsigned char old_legacy; 363 unsigned char old_legacy;
364 unsigned char old_legacy_cfg; 364 unsigned char old_legacy_cfg;
365#ifdef CONFIG_PM 365#ifdef CONFIG_PM_SLEEP
366 unsigned char legacy_saved; 366 unsigned char legacy_saved;
367 unsigned char legacy_cfg_saved; 367 unsigned char legacy_cfg_saved;
368 unsigned char spdif_ctrl_saved; 368 unsigned char spdif_ctrl_saved;
@@ -2038,7 +2038,7 @@ static int __devinit snd_via686_init_misc(struct via82xx *chip)
2038 if (mpu_port >= 0x200) { /* force MIDI */ 2038 if (mpu_port >= 0x200) { /* force MIDI */
2039 mpu_port &= 0xfffc; 2039 mpu_port &= 0xfffc;
2040 pci_write_config_dword(chip->pci, 0x18, mpu_port | 0x01); 2040 pci_write_config_dword(chip->pci, 0x18, mpu_port | 0x01);
2041#ifdef CONFIG_PM 2041#ifdef CONFIG_PM_SLEEP
2042 chip->mpu_port_saved = mpu_port; 2042 chip->mpu_port_saved = mpu_port;
2043#endif 2043#endif
2044 } else { 2044 } else {
@@ -2090,7 +2090,7 @@ static int __devinit snd_via686_init_misc(struct via82xx *chip)
2090 2090
2091 snd_via686_create_gameport(chip, &legacy); 2091 snd_via686_create_gameport(chip, &legacy);
2092 2092
2093#ifdef CONFIG_PM 2093#ifdef CONFIG_PM_SLEEP
2094 chip->legacy_saved = legacy; 2094 chip->legacy_saved = legacy;
2095 chip->legacy_cfg_saved = legacy_cfg; 2095 chip->legacy_cfg_saved = legacy_cfg;
2096#endif 2096#endif
@@ -2238,7 +2238,7 @@ static int snd_via82xx_chip_init(struct via82xx *chip)
2238 return 0; 2238 return 0;
2239} 2239}
2240 2240
2241#ifdef CONFIG_PM 2241#ifdef CONFIG_PM_SLEEP
2242/* 2242/*
2243 * power management 2243 * power management
2244 */ 2244 */
@@ -2313,7 +2313,7 @@ static SIMPLE_DEV_PM_OPS(snd_via82xx_pm, snd_via82xx_suspend, snd_via82xx_resume
2313#define SND_VIA82XX_PM_OPS &snd_via82xx_pm 2313#define SND_VIA82XX_PM_OPS &snd_via82xx_pm
2314#else 2314#else
2315#define SND_VIA82XX_PM_OPS NULL 2315#define SND_VIA82XX_PM_OPS NULL
2316#endif /* CONFIG_PM */ 2316#endif /* CONFIG_PM_SLEEP */
2317 2317
2318static int snd_via82xx_free(struct via82xx *chip) 2318static int snd_via82xx_free(struct via82xx *chip)
2319{ 2319{
diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c
index e886bc16999d..8e0efc416f22 100644
--- a/sound/pci/via82xx_modem.c
+++ b/sound/pci/via82xx_modem.c
@@ -1019,7 +1019,7 @@ static int snd_via82xx_chip_init(struct via82xx_modem *chip)
1019 return 0; 1019 return 0;
1020} 1020}
1021 1021
1022#ifdef CONFIG_PM 1022#ifdef CONFIG_PM_SLEEP
1023/* 1023/*
1024 * power management 1024 * power management
1025 */ 1025 */
@@ -1076,7 +1076,7 @@ static SIMPLE_DEV_PM_OPS(snd_via82xx_pm, snd_via82xx_suspend, snd_via82xx_resume
1076#define SND_VIA82XX_PM_OPS &snd_via82xx_pm 1076#define SND_VIA82XX_PM_OPS &snd_via82xx_pm
1077#else 1077#else
1078#define SND_VIA82XX_PM_OPS NULL 1078#define SND_VIA82XX_PM_OPS NULL
1079#endif /* CONFIG_PM */ 1079#endif /* CONFIG_PM_SLEEP */
1080 1080
1081static int snd_via82xx_free(struct via82xx_modem *chip) 1081static int snd_via82xx_free(struct via82xx_modem *chip)
1082{ 1082{
diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c
index b89e7a86e9d8..fdfbaf857233 100644
--- a/sound/pci/vx222/vx222.c
+++ b/sound/pci/vx222/vx222.c
@@ -257,7 +257,7 @@ static void __devexit snd_vx222_remove(struct pci_dev *pci)
257 pci_set_drvdata(pci, NULL); 257 pci_set_drvdata(pci, NULL);
258} 258}
259 259
260#ifdef CONFIG_PM 260#ifdef CONFIG_PM_SLEEP
261static int snd_vx222_suspend(struct device *dev) 261static int snd_vx222_suspend(struct device *dev)
262{ 262{
263 struct pci_dev *pci = to_pci_dev(dev); 263 struct pci_dev *pci = to_pci_dev(dev);
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c
index 4810356b97ba..e01fe34db9ec 100644
--- a/sound/pci/ymfpci/ymfpci.c
+++ b/sound/pci/ymfpci/ymfpci.c
@@ -355,7 +355,7 @@ static struct pci_driver ymfpci_driver = {
355 .id_table = snd_ymfpci_ids, 355 .id_table = snd_ymfpci_ids,
356 .probe = snd_card_ymfpci_probe, 356 .probe = snd_card_ymfpci_probe,
357 .remove = __devexit_p(snd_card_ymfpci_remove), 357 .remove = __devexit_p(snd_card_ymfpci_remove),
358#ifdef CONFIG_PM 358#ifdef CONFIG_PM_SLEEP
359 .driver = { 359 .driver = {
360 .pm = &snd_ymfpci_pm, 360 .pm = &snd_ymfpci_pm,
361 }, 361 },
diff --git a/sound/pci/ymfpci/ymfpci.h b/sound/pci/ymfpci/ymfpci.h
index bddc4052286b..4631a2348915 100644
--- a/sound/pci/ymfpci/ymfpci.h
+++ b/sound/pci/ymfpci/ymfpci.h
@@ -363,7 +363,7 @@ struct snd_ymfpci {
363 const struct firmware *dsp_microcode; 363 const struct firmware *dsp_microcode;
364 const struct firmware *controller_microcode; 364 const struct firmware *controller_microcode;
365 365
366#ifdef CONFIG_PM 366#ifdef CONFIG_PM_SLEEP
367 u32 *saved_regs; 367 u32 *saved_regs;
368 u32 saved_ydsxgr_mode; 368 u32 saved_ydsxgr_mode;
369 u16 saved_dsxg_legacy; 369 u16 saved_dsxg_legacy;
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c
index 62b23635b754..ee8b6366e48d 100644
--- a/sound/pci/ymfpci/ymfpci_main.c
+++ b/sound/pci/ymfpci/ymfpci_main.c
@@ -2242,7 +2242,7 @@ static int snd_ymfpci_free(struct snd_ymfpci *chip)
2242 pci_set_power_state(chip->pci, 3); 2242 pci_set_power_state(chip->pci, 3);
2243#endif 2243#endif
2244 2244
2245#ifdef CONFIG_PM 2245#ifdef CONFIG_PM_SLEEP
2246 vfree(chip->saved_regs); 2246 vfree(chip->saved_regs);
2247#endif 2247#endif
2248 if (chip->irq >= 0) 2248 if (chip->irq >= 0)
@@ -2272,7 +2272,7 @@ static int snd_ymfpci_dev_free(struct snd_device *device)
2272 return snd_ymfpci_free(chip); 2272 return snd_ymfpci_free(chip);
2273} 2273}
2274 2274
2275#ifdef CONFIG_PM 2275#ifdef CONFIG_PM_SLEEP
2276static int saved_regs_index[] = { 2276static int saved_regs_index[] = {
2277 /* spdif */ 2277 /* spdif */
2278 YDSXGR_SPDIFOUTCTRL, 2278 YDSXGR_SPDIFOUTCTRL,
@@ -2374,7 +2374,7 @@ static int snd_ymfpci_resume(struct device *dev)
2374} 2374}
2375 2375
2376SIMPLE_DEV_PM_OPS(snd_ymfpci_pm, snd_ymfpci_suspend, snd_ymfpci_resume); 2376SIMPLE_DEV_PM_OPS(snd_ymfpci_pm, snd_ymfpci_suspend, snd_ymfpci_resume);
2377#endif /* CONFIG_PM */ 2377#endif /* CONFIG_PM_SLEEP */
2378 2378
2379int __devinit snd_ymfpci_create(struct snd_card *card, 2379int __devinit snd_ymfpci_create(struct snd_card *card,
2380 struct pci_dev * pci, 2380 struct pci_dev * pci,
@@ -2452,7 +2452,7 @@ int __devinit snd_ymfpci_create(struct snd_card *card,
2452 return err; 2452 return err;
2453 } 2453 }
2454 2454
2455#ifdef CONFIG_PM 2455#ifdef CONFIG_PM_SLEEP
2456 chip->saved_regs = vmalloc(YDSXGR_NUM_SAVED_REGS * sizeof(u32)); 2456 chip->saved_regs = vmalloc(YDSXGR_NUM_SAVED_REGS * sizeof(u32));
2457 if (chip->saved_regs == NULL) { 2457 if (chip->saved_regs == NULL) {
2458 snd_ymfpci_free(chip); 2458 snd_ymfpci_free(chip);