Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: cmi8328: Fix compile warnings without CONFIG_PM

Just add an ifdef CONFIG_PM to shut up the warnings:

sound/isa/cmi8328.c:129:13: warning: ‘snd_cmi8328_cfg_save’ defined but not used [-Wunused-function]
sound/isa/cmi8328.c:136:13: warning: ‘snd_cmi8328_cfg_restore’ defined but not used [-Wunused-function]

Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2
+2
sound/isa/cmi8328.c
··· 126 126 outb(val, port + 3); /* yes, value goes to the same port as index */ 127 127 } 128 128 129 + #ifdef CONFIG_PM 129 130 static void snd_cmi8328_cfg_save(u16 port, u8 cfg[]) 130 131 { 131 132 cfg[0] = snd_cmi8328_cfg_read(port, CFG1); ··· 140 139 snd_cmi8328_cfg_write(port, CFG2, cfg[1]); 141 140 snd_cmi8328_cfg_write(port, CFG3, cfg[2]); 142 141 } 142 + #endif /* CONFIG_PM */ 143 143 144 144 static int snd_cmi8328_mixer(struct snd_wss *chip) 145 145 {