diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-07 13:13:12 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-07-07 13:15:10 (GMT) |
commit | 525549d7342fca7fca9fc11298b5ab3617b6f730 (patch) | |
tree | 3c7cccdd4aade3e11619f0d5af3cc21c0ac2f8e2 /sound/pci/hda/hda_tegra.c | |
parent | e4d9e513dedb5ac4e166c1053314fa935ddecc8c (diff) | |
download | linux-525549d7342fca7fca9fc11298b5ab3617b6f730.tar.xz |
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: Thierry Reding <treding@nvidia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_tegra.c')
-rw-r--r-- | sound/pci/hda/hda_tegra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c index a366ba9..358414d 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c @@ -236,6 +236,7 @@ disable_hda: return rc; } +#ifdef CONFIG_PM_SLEEP static void hda_tegra_disable_clocks(struct hda_tegra *data) { clk_disable_unprepare(data->hda2hdmi_clk); @@ -243,7 +244,6 @@ static void hda_tegra_disable_clocks(struct hda_tegra *data) clk_disable_unprepare(data->hda_clk); } -#ifdef CONFIG_PM_SLEEP /* * power management */ |