Skip to content

Commit

Permalink
ALSA: hda: Fix build warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and Takashi Iwai committed Jul 7, 2014
1 parent e4d9e51 commit 525549d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ static int hda_tegra_enable_clocks(struct hda_tegra *data)
return rc;
}

#ifdef CONFIG_PM_SLEEP
static void hda_tegra_disable_clocks(struct hda_tegra *data)
{
clk_disable_unprepare(data->hda2hdmi_clk);
clk_disable_unprepare(data->hda2codec_2x_clk);
clk_disable_unprepare(data->hda_clk);
}

#ifdef CONFIG_PM_SLEEP
/*
* power management
*/
Expand Down

0 comments on commit 525549d

Please sign in to comment.