Skip to content

Commit 1d20a69

Browse files
committed
ASoC: SOF: intel: remove compilation warning when SOF_HDA is not defined
-Wunused-variable should be an error Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 7f4d657 commit 1d20a69

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sound/soc/sof/intel/hda-ctrl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ void hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable)
138138
*/
139139
int hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable)
140140
{
141+
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
141142
struct hdac_bus *bus = sof_to_bus(sdev);
143+
#endif
142144
u32 val;
143145

144146
/* enable/disable audio dsp clock gating */

0 commit comments

Comments
 (0)