diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-11-06 11:54:02 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-11-06 11:57:22 -0500 |
commit | 77ed16cc6c4d8ff0fe7b18c53e13826a81bd4d06 (patch) | |
tree | 2b49490385d41b7cc8195f8a9da7fc70fca342da /sound/isa | |
parent | 8e35cd4ac9967620e03f027f27db18b2e249dcd7 (diff) |
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>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/cmi8328.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/isa/cmi8328.c b/sound/isa/cmi8328.c index f84f073fc1e8..ab6b2dc043f1 100644 --- a/sound/isa/cmi8328.c +++ b/sound/isa/cmi8328.c | |||
@@ -126,6 +126,7 @@ static void snd_cmi8328_cfg_write(u16 port, u8 reg, u8 val) | |||
126 | outb(val, port + 3); /* yes, value goes to the same port as index */ | 126 | outb(val, port + 3); /* yes, value goes to the same port as index */ |
127 | } | 127 | } |
128 | 128 | ||
129 | #ifdef CONFIG_PM | ||
129 | static void snd_cmi8328_cfg_save(u16 port, u8 cfg[]) | 130 | static void snd_cmi8328_cfg_save(u16 port, u8 cfg[]) |
130 | { | 131 | { |
131 | cfg[0] = snd_cmi8328_cfg_read(port, CFG1); | 132 | cfg[0] = snd_cmi8328_cfg_read(port, CFG1); |
@@ -139,6 +140,7 @@ static void snd_cmi8328_cfg_restore(u16 port, u8 cfg[]) | |||
139 | snd_cmi8328_cfg_write(port, CFG2, cfg[1]); | 140 | snd_cmi8328_cfg_write(port, CFG2, cfg[1]); |
140 | snd_cmi8328_cfg_write(port, CFG3, cfg[2]); | 141 | snd_cmi8328_cfg_write(port, CFG3, cfg[2]); |
141 | } | 142 | } |
143 | #endif /* CONFIG_PM */ | ||
142 | 144 | ||
143 | static int snd_cmi8328_mixer(struct snd_wss *chip) | 145 | static int snd_cmi8328_mixer(struct snd_wss *chip) |
144 | { | 146 | { |