mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] sound: fix ca0106 for CONFIG_PM=n
@ 2008-12-04 17:26 Randy Dunlap
  2008-12-05  2:17 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-12-04 17:26 UTC (permalink / raw)
  To: tiwai, akpm; +Cc: lkml

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix build error when CONFIG_PM=n:

sound/pci/ca0106/ca0106_main.c:1809: error: 'snd_ca0106_suspend' undeclared here (not in a function)
sound/pci/ca0106/ca0106_main.c:1810: error: 'snd_ca0106_resume' undeclared here (not in a function)
build-r7018.out:make[4]: *** [sound/pci/ca0106/ca0106_main.o] Error 1

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 sound/pci/ca0106/ca0106_main.c |    4 ++++
 1 file changed, 4 insertions(+)

--- linux-next-20081204.orig/sound/pci/ca0106/ca0106_main.c
+++ linux-next-20081204/sound/pci/ca0106/ca0106_main.c
@@ -1791,6 +1791,10 @@ static int snd_ca0106_resume(struct pci_
 	snd_power_change_state(card, SNDRV_CTL_POWER_D0);
 	return 0;
 }
+
+#else /* not CONFIG_PM */
+#define snd_ca0106_suspend	NULL
+#define snd_ca0106_resume	NULL
 #endif
 
 // PCI IDs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] sound: fix ca0106 for CONFIG_PM=n
  2008-12-04 17:26 [PATCH -next] sound: fix ca0106 for CONFIG_PM=n Randy Dunlap
@ 2008-12-05  2:17 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2008-12-05  2:17 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: akpm, lkml

1At Thu, 4 Dec 2008 09:26:57 -0800,
Randy Dunlap wrote:
> 
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Fix build error when CONFIG_PM=n:
> 
> sound/pci/ca0106/ca0106_main.c:1809: error: 'snd_ca0106_suspend' undeclared here (not in a function)
> sound/pci/ca0106/ca0106_main.c:1810: error: 'snd_ca0106_resume' undeclared here (not in a function)
> build-r7018.out:make[4]: *** [sound/pci/ca0106/ca0106_main.o] Error 1
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>

Thanks.  This was already fixed on the latest sound git tree.
Should be fine in today's upcoming next linux-tree.


Takashi


> ---
>  sound/pci/ca0106/ca0106_main.c |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> --- linux-next-20081204.orig/sound/pci/ca0106/ca0106_main.c
> +++ linux-next-20081204/sound/pci/ca0106/ca0106_main.c
> @@ -1791,6 +1791,10 @@ static int snd_ca0106_resume(struct pci_
>  	snd_power_change_state(card, SNDRV_CTL_POWER_D0);
>  	return 0;
>  }
> +
> +#else /* not CONFIG_PM */
> +#define snd_ca0106_suspend	NULL
> +#define snd_ca0106_resume	NULL
>  #endif
>  
>  // PCI IDs
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-05  2:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-04 17:26 [PATCH -next] sound: fix ca0106 for CONFIG_PM=n Randy Dunlap
2008-12-05  2:17 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®