diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-06-28 02:59:30 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-06-28 02:59:30 -0400 |
commit | ff2b7e2a3fdb341a235e0b2eccc3c8914d26c1fb (patch) | |
tree | 6adb59c3318d6861cb7b0271b6a3cfc033b3450f /sound | |
parent | 880a050f4ac4399c9da4aea3ca19a701f9a727e0 (diff) |
ALSA: hda - Fix warnings with CONFIG_SND_POWER_SAVE=n
Use static inline for dummy function to fix the warnings like below
sound/pci/hda/patch_sigmatel.c: In function ‘stac92xx_init’:
sound/pci/hda/patch_sigmatel.c:4387:3: warning: statement with no effect
sound/pci/hda/patch_sigmatel.c: In function ‘stac92xx_resume’:
sound/pci/hda/patch_sigmatel.c:4927:3: warning: statement with no effect
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index c71cd7fb6d11..79ef65e3ae14 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h | |||
@@ -1011,17 +1011,15 @@ int snd_hda_suspend(struct hda_bus *bus); | |||
1011 | int snd_hda_resume(struct hda_bus *bus); | 1011 | int snd_hda_resume(struct hda_bus *bus); |
1012 | #endif | 1012 | #endif |
1013 | 1013 | ||
1014 | #ifdef CONFIG_SND_HDA_POWER_SAVE | ||
1015 | static inline | 1014 | static inline |
1016 | int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid) | 1015 | int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid) |
1017 | { | 1016 | { |
1017 | #ifdef CONFIG_SND_HDA_POWER_SAVE | ||
1018 | if (codec->patch_ops.check_power_status) | 1018 | if (codec->patch_ops.check_power_status) |
1019 | return codec->patch_ops.check_power_status(codec, nid); | 1019 | return codec->patch_ops.check_power_status(codec, nid); |
1020 | #endif | ||
1020 | return 0; | 1021 | return 0; |
1021 | } | 1022 | } |
1022 | #else | ||
1023 | #define hda_call_check_power_status(codec, nid) 0 | ||
1024 | #endif | ||
1025 | 1023 | ||
1026 | /* | 1024 | /* |
1027 | * get widget information | 1025 | * get widget information |