diff options
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 23ad7e216a6b..464ea16bdd9e 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -2409,11 +2409,10 @@ static void azx_power_notify(struct hda_bus *bus) | |||
2409 | } | 2409 | } |
2410 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ | 2410 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ |
2411 | 2411 | ||
2412 | #ifdef CONFIG_PM | 2412 | #if defined(CONFIG_PM_SLEEP) || defined(SUPPORT_VGA_SWITCHEROO) |
2413 | /* | 2413 | /* |
2414 | * power management | 2414 | * power management |
2415 | */ | 2415 | */ |
2416 | |||
2417 | static int azx_suspend(struct device *dev) | 2416 | static int azx_suspend(struct device *dev) |
2418 | { | 2417 | { |
2419 | struct pci_dev *pci = to_pci_dev(dev); | 2418 | struct pci_dev *pci = to_pci_dev(dev); |
@@ -2471,10 +2470,8 @@ static int azx_resume(struct device *dev) | |||
2471 | static SIMPLE_DEV_PM_OPS(azx_pm, azx_suspend, azx_resume); | 2470 | static SIMPLE_DEV_PM_OPS(azx_pm, azx_suspend, azx_resume); |
2472 | #define AZX_PM_OPS &azx_pm | 2471 | #define AZX_PM_OPS &azx_pm |
2473 | #else | 2472 | #else |
2474 | #define azx_suspend(dev) | ||
2475 | #define azx_resume(dev) | ||
2476 | #define AZX_PM_OPS NULL | 2473 | #define AZX_PM_OPS NULL |
2477 | #endif /* CONFIG_PM */ | 2474 | #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ |
2478 | 2475 | ||
2479 | 2476 | ||
2480 | /* | 2477 | /* |