diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-07-23 06:10:07 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-10-16 09:03:19 -0400 |
commit | 1f28960b465afe0dc3ccb8bd53354cb435ea0384 (patch) | |
tree | acf947ee3e8652dbe5342a4b40f51e0b4a5be6aa /sound/aoa/codecs | |
parent | 65a6ec0d72a07f16719e9b7a96e1c4bae044b591 (diff) |
[ALSA] Fix tas_suspend/resume build warning
sound/aoa/codecs/snd-aoa-codec-tas.c:750: warning: 'tas_suspend' defined but not used
sound/aoa/codecs/snd-aoa-codec-tas.c:760: warning: 'tas_resume' defined but not used
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/aoa/codecs')
-rw-r--r-- | sound/aoa/codecs/snd-aoa-codec-tas.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/aoa/codecs/snd-aoa-codec-tas.c b/sound/aoa/codecs/snd-aoa-codec-tas.c index 2f771f57c76f..3cbfe4619aa8 100644 --- a/sound/aoa/codecs/snd-aoa-codec-tas.c +++ b/sound/aoa/codecs/snd-aoa-codec-tas.c | |||
@@ -743,6 +743,7 @@ static int tas_switch_clock(struct codec_info_item *cii, enum clock_switch clock | |||
743 | return 0; | 743 | return 0; |
744 | } | 744 | } |
745 | 745 | ||
746 | #ifdef CONFIG_PM | ||
746 | /* we are controlled via i2c and assume that is always up | 747 | /* we are controlled via i2c and assume that is always up |
747 | * If that wasn't the case, we'd have to suspend once | 748 | * If that wasn't the case, we'd have to suspend once |
748 | * our i2c device is suspended, and then take note of that! */ | 749 | * our i2c device is suspended, and then take note of that! */ |
@@ -768,7 +769,6 @@ static int tas_resume(struct tas *tas) | |||
768 | return 0; | 769 | return 0; |
769 | } | 770 | } |
770 | 771 | ||
771 | #ifdef CONFIG_PM | ||
772 | static int _tas_suspend(struct codec_info_item *cii, pm_message_t state) | 772 | static int _tas_suspend(struct codec_info_item *cii, pm_message_t state) |
773 | { | 773 | { |
774 | return tas_suspend(cii->codec_data); | 774 | return tas_suspend(cii->codec_data); |
@@ -778,7 +778,10 @@ static int _tas_resume(struct codec_info_item *cii) | |||
778 | { | 778 | { |
779 | return tas_resume(cii->codec_data); | 779 | return tas_resume(cii->codec_data); |
780 | } | 780 | } |
781 | #endif | 781 | #else /* CONFIG_PM */ |
782 | #define _tas_suspend NULL | ||
783 | #define _tas_resume NULL | ||
784 | #endif /* CONFIG_PM */ | ||
782 | 785 | ||
783 | static struct codec_info tas_codec_info = { | 786 | static struct codec_info tas_codec_info = { |
784 | .transfers = tas_transfers, | 787 | .transfers = tas_transfers, |
@@ -791,10 +794,8 @@ static struct codec_info tas_codec_info = { | |||
791 | .owner = THIS_MODULE, | 794 | .owner = THIS_MODULE, |
792 | .usable = tas_usable, | 795 | .usable = tas_usable, |
793 | .switch_clock = tas_switch_clock, | 796 | .switch_clock = tas_switch_clock, |
794 | #ifdef CONFIG_PM | ||
795 | .suspend = _tas_suspend, | 797 | .suspend = _tas_suspend, |
796 | .resume = _tas_resume, | 798 | .resume = _tas_resume, |
797 | #endif | ||
798 | }; | 799 | }; |
799 | 800 | ||
800 | static int tas_init_codec(struct aoa_codec *codec) | 801 | static int tas_init_codec(struct aoa_codec *codec) |