[alsa-devel] [sound:for-next 42/42] sound/pci/ice1712/ice1724.c:2366:5: error: 'struct snd_ice1712' has no member named 'pm_suspend_enabled'

Takashi Iwai tiwai at suse.de
Mon Nov 12 11:40:25 CET 2012


At Mon, 12 Nov 2012 18:22:00 +0800,
kbuild test robot wrote:
> 
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
> head:   ef8784453d1cd5beedce9d288d56221a898c7ecb
> commit: ef8784453d1cd5beedce9d288d56221a898c7ecb [42/42] ALSA: ice1724: enable suspend on unknown ICE1724 cards
> config: i386-randconfig-b666 (attached as .config)
> 
> All error/warnings:
> 
> sound/pci/ice1712/ice1724.c: In function 'snd_vt1724_read_eeprom':
> sound/pci/ice1712/ice1724.c:2366:5: error: 'struct snd_ice1712' has no member named 'pm_suspend_enabled'

Fixed now like below.  Thanks!


Takashi

---
From 063f603c8c1039f576405bb98c1b6c94262e5806 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai at suse.de>
Date: Mon, 12 Nov 2012 11:38:10 +0100
Subject: [PATCH] ALSA: ice1724: Fix build error without CONFIG_PM_SLEEP

Bah, forgot this again...

Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
 sound/pci/ice1712/ice1724.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c
index 4c52a31..ea99e56 100644
--- a/sound/pci/ice1712/ice1724.c
+++ b/sound/pci/ice1712/ice1724.c
@@ -2362,8 +2362,10 @@ static int __devinit snd_vt1724_read_eeprom(struct snd_ice1712 *ice,
 	}
 	printk(KERN_WARNING "ice1724: No matching model found for ID 0x%x\n",
 	       ice->eeprom.subvendor);
+#ifdef CONFIG_PM_SLEEP
 	/* assume AC97-only card which can suspend without additional code */
 	ice->pm_suspend_enabled = 1;
+#endif
 
  found:
 	ice->eeprom.size = snd_vt1724_read_i2c(ice, dev, 0x04);
-- 
1.8.0



More information about the Alsa-devel mailing list