提交 525549d7 编写于 作者: T Thierry Reding 提交者: Takashi Iwai

ALSA: hda: Fix build warning

The hda_tegra_disable_clocks() function is only used by the suspend and
resume code, so it needs to be included in the #ifdef CONFIG_PM_SLEEP
block to prevent the following warning:

  CC      sound/pci/hda/hda_tegra.o
sound/pci/hda/hda_tegra.c:238:13: warning: 'hda_tegra_disable_clocks' defined but not used [-Wunused-function]
 static void hda_tegra_disable_clocks(struct hda_tegra *data)
             ^
Signed-off-by: NThierry Reding <treding@nvidia.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 e4d9e513
...@@ -236,6 +236,7 @@ static int hda_tegra_enable_clocks(struct hda_tegra *data) ...@@ -236,6 +236,7 @@ static int hda_tegra_enable_clocks(struct hda_tegra *data)
return rc; return rc;
} }
#ifdef CONFIG_PM_SLEEP
static void hda_tegra_disable_clocks(struct hda_tegra *data) static void hda_tegra_disable_clocks(struct hda_tegra *data)
{ {
clk_disable_unprepare(data->hda2hdmi_clk); clk_disable_unprepare(data->hda2hdmi_clk);
...@@ -243,7 +244,6 @@ static void hda_tegra_disable_clocks(struct hda_tegra *data) ...@@ -243,7 +244,6 @@ static void hda_tegra_disable_clocks(struct hda_tegra *data)
clk_disable_unprepare(data->hda_clk); clk_disable_unprepare(data->hda_clk);
} }
#ifdef CONFIG_PM_SLEEP
/* /*
* power management * power management
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册