From: Randy Dunlap Date: Tue, 23 Oct 2012 17:34:16 +0000 (-0700) Subject: ALSA: ice1712: Fix build errors X-Git-Tag: v3.8-rc1~29^2~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e13db806e07ae9fdb1c2135fc60ea09fcbf3f3c;p=platform%2Fupstream%2Fkernel-adaptation-pc.git ALSA: ice1712: Fix build errors Fix build errors by using correct kconfig symbol name: sound/pci/ice1712/psc724.c:417:5: error: 'struct snd_ice1712' has no member named 'pm_resume' sound/pci/ice1712/psc724.c:418:5: error: 'struct snd_ice1712' has no member named 'pm_suspend_enabled' [Fixed another #ifdef CONFIG_PM in the same file, too, by tiwai] Signed-off-by: Randy Dunlap Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/ice1712/psc724.c b/sound/pci/ice1712/psc724.c index 457cbaa..0b6c4e6 100644 --- a/sound/pci/ice1712/psc724.c +++ b/sound/pci/ice1712/psc724.c @@ -382,7 +382,7 @@ static void psc724_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate) /* power management */ -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int psc724_resume(struct snd_ice1712 *ice) { struct psc724_spec *spec = ice->spec; @@ -413,7 +413,7 @@ static int __devinit psc724_init(struct snd_ice1712 *ice) snd_wm8776_init(&spec->wm8776); spec->wm8766.ops.write = psc724_wm8766_write; spec->wm8766.card = ice->card; -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP ice->pm_resume = psc724_resume; ice->pm_suspend_enabled = 1; #endif