ALSA: hda - Fix build error without CONFIG_SND_HDA_HWDEP=y
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Nov 2009 09:01:18 +0000 (10:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Nov 2009 09:01:18 +0000 (10:01 +0100)
CONFIG_SND_HDA_POWER_SAVE is independent from CONFIG_SND_HDA_HWDEP.
Thus snd_hda_hwdep_add_power_sysfs() needs the check of both kconfigs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_local.h

index 015fbac914b3dc03b71c0991fd9177993edcd3c8..c1ca3182e6a4b3c4e6a0b6b44a7bf8c4f86cb62d 100644 (file)
@@ -437,7 +437,7 @@ int snd_hda_create_hwdep(struct hda_codec *codec);
 static inline int snd_hda_create_hwdep(struct hda_codec *codec) { return 0; }
 #endif
 
-#ifdef CONFIG_SND_HDA_POWER_SAVE
+#if defined(CONFIG_SND_HDA_POWER_SAVE) && defined(CONFIG_SND_HDA_HWDEP)
 int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec);
 #else
 static inline int snd_hda_hwdep_add_power_sysfs(struct hda_codec *codec)