sound: fix ca0106 for CONFIG_PM=n
PATCH 1/1 sound: fix ca0106 for CONFIG_PM=n
From: Randy Dunlap <[email protected]>
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
--- sound/pci/ca0106/ca0106_main.c | 4 ++++ 1 file changed, 4 insertions(+)
sound/pci/ca0106/ca0106_main.c +4 -0
@@ -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
1At Thu, 4 Dec 2008 09:26:57 -0800,
Quoted 10 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
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 1Signed-off-by Randy Dunlap <[email protected]>
Thanks. This was already fixed on the latest sound git tree. Should be fine in today's upcoming next linux-tree.
Takashi
Quoted 18 lines
--- sound/pci/ca0106/ca0106_main.c | 4 ++++ 1 file changed, 4 insertions(+)sound/pci/ca0106/ca0106_main.c +4
-0@@ -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