Skip to content

Commit c975f17

Browse files
committed
Merge tag 'drm-misc-next-fixes-2018-04-04' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
hda_intel: Don't declare azx PM ops if VGA_SWITCHEROO configured (Lukas) Cc: Lukas Wunner <lukas@wunner.de> Cc: Takashi Iwai <tiwai@suse.de> * tag 'drm-misc-next-fixes-2018-04-04' of git://anongit.freedesktop.org/drm/drm-misc: ALSA: hda - Silence PM ops build warning
2 parents 694f54f + 8cd1b5b commit c975f17

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sound/pci/hda/hda_intel.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ static int param_set_xint(const char *val, const struct kernel_param *kp)
987987
#define azx_del_card_list(chip) /* NOP */
988988
#endif /* CONFIG_PM */
989989

990-
#if defined(CONFIG_PM_SLEEP) || defined(SUPPORT_VGA_SWITCHEROO)
990+
#ifdef CONFIG_PM_SLEEP
991991
/*
992992
* power management
993993
*/
@@ -1068,9 +1068,7 @@ static int azx_resume(struct device *dev)
10681068
trace_azx_resume(chip);
10691069
return 0;
10701070
}
1071-
#endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */
10721071

1073-
#ifdef CONFIG_PM_SLEEP
10741072
/* put codec down to D3 at hibernation for Intel SKL+;
10751073
* otherwise BIOS may still access the codec and screw up the driver
10761074
*/

0 commit comments

Comments
 (0)