diff mbox series

ALSA: ac97: Define dummy functions for snd_ac97_suspend() and resume()

Message ID 20230330132847.12882-1-tiwai@suse.de (mailing list archive)
State New, archived
Headers show
Series ALSA: ac97: Define dummy functions for snd_ac97_suspend() and resume() | expand

Commit Message

Takashi Iwai March 30, 2023, 1:28 p.m. UTC
For allowing the build without CONFIG_PM, add definitions of dummy
functions for snd_ac97_suspend() and snd_ac97_resume() without
CONFIG_PM, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 include/sound/ac97_codec.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jaroslav Kysela March 30, 2023, 1:32 p.m. UTC | #1
On 30. 03. 23 15:28, Takashi Iwai wrote:
> For allowing the build without CONFIG_PM, add definitions of dummy
> functions for snd_ac97_suspend() and snd_ac97_resume() without
> CONFIG_PM, too.
>  > Signed-off-by: Takashi Iwai <tiwai@suse.de>

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Tasos Sahanidis March 30, 2023, 2:29 p.m. UTC | #2
On 2023-03-30 16:28, Takashi Iwai wrote:
> For allowing the build without CONFIG_PM, add definitions of dummy
> functions for snd_ac97_suspend() and snd_ac97_resume() without
> CONFIG_PM, too.
> 
> Signed-off-by: Takashi Iwai <tiwai@suse.de>

Apologies for not catching this.

Reviewed-by: Tasos Sahanidis <tasos@tasossah.com>
diff mbox series

Patch

diff --git a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h
index 49200ec26dc4..c495c6d5fbe0 100644
--- a/include/sound/ac97_codec.h
+++ b/include/sound/ac97_codec.h
@@ -335,6 +335,9 @@  static inline int snd_ac97_update_power(struct snd_ac97 *ac97, int reg,
 #ifdef CONFIG_PM
 void snd_ac97_suspend(struct snd_ac97 *ac97);
 void snd_ac97_resume(struct snd_ac97 *ac97);
+#else
+static inline void snd_ac97_suspend(struct snd_ac97 *ac97) {}
+static inline void snd_ac97_resume(struct snd_ac97 *ac97) {}
 #endif
 int snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id,
 	unsigned int id_mask);