]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Fix build warning
authorThierry Reding <treding@nvidia.com>
Mon, 7 Jul 2014 13:13:12 +0000 (15:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 7 Jul 2014 13:15:10 +0000 (15:15 +0200)
commit5761f58473a4a49b2f00db4fbf116c75704b3767
tree3c7cccdd4aade3e11619f0d5af3cc21c0ac2f8e2
parentf41c2cad08f71044cd48d125c26bf6eb04e5760b
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>
sound/pci/hda/hda_tegra.c