From 2efa1d59fe5af81456393472121623c9502548ce Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 22 Nov 2012 21:21:20 +0100 Subject: ALSA: emu10k1: Add missing ifdef for emu->suspend reference It's defined only for PM. Reported-by: Fengguang Wu Signed-off-by: Takashi Iwai --- sound/pci/emu10k1/emu10k1_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sound/pci/emu10k1') diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c index cfd6cf952d4..527ef216d4c 100644 --- a/sound/pci/emu10k1/emu10k1_main.c +++ b/sound/pci/emu10k1/emu10k1_main.c @@ -714,8 +714,10 @@ static int emu1010_firmware_thread(void *data) msleep_interruptible(1000); if (kthread_should_stop()) break; +#ifdef CONFIG_PM_SLEEP if (emu->suspend) continue; +#endif snd_emu1010_fpga_read(emu, EMU_HANA_IRQ_STATUS, &tmp); /* IRQ Status */ snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, ®); /* OPTIONS: Which cards are attached to the EMU */ if (reg & EMU_HANA_OPTION_DOCK_OFFLINE) { -- cgit v1.2.3-70-g09d2