From patchwork Mon Jul 7 13:13:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 4494761 X-Patchwork-Delegate: tiwai@suse.de Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 44FA5BEEAA for ; Mon, 7 Jul 2014 13:13:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7B44F20306 for ; Mon, 7 Jul 2014 13:13:41 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 34FEA202F0 for ; Mon, 7 Jul 2014 13:13:39 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4DCFA2625EE; Mon, 7 Jul 2014 15:13:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id DC9022650D8; Mon, 7 Jul 2014 15:13:25 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9B550265142; Mon, 7 Jul 2014 15:13:24 +0200 (CEST) Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by alsa0.perex.cz (Postfix) with ESMTP id 833042625EE for ; Mon, 7 Jul 2014 15:13:16 +0200 (CEST) Received: by mail-we0-f171.google.com with SMTP id q58so4420180wes.16 for ; Mon, 07 Jul 2014 06:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8R4ousEdOPBvB9sKLN2Rstk4br0gFIYtUv7OwRKt8SY=; b=CkRWFUwm3ZDAxCXJWs13S6Szz+/deVVEZeecz613KDEowed3AmuEc+6vsTYN267ob+ UyOpeFETiZuoVnUSbvSPsy41Mo0m1OPjel5uaVv46dd3dTSz08yMoxXjNed5j67DdpuP Rkm1WTsR87FxNN54JRvVKf0taFegf1bovTB9qTkk+quGkmppML+tNIRUBG6zPpeS/qrZ OCefqFGCHVPH+3NCtm9aKGGdvDLQ8nvdx8qDqx+rx9dheW0/rSIXWcKgsgbqpxc5qZa/ S0XA4F5WzXZigI+tYcm1MrmW79GBY089X8BlTGN2NHyiVA30KKWiKxl5FCuBV0Z8qZhl g+jw== X-Received: by 10.194.82.106 with SMTP id h10mr3469378wjy.115.1404738796164; Mon, 07 Jul 2014 06:13:16 -0700 (PDT) Received: from localhost (port-12246.pppoe.wtnet.de. [84.46.48.6]) by mx.google.com with ESMTPSA id i12sm89371125wjr.32.2014.07.07.06.13.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jul 2014 06:13:15 -0700 (PDT) From: Thierry Reding To: Takashi Iwai , Jaroslav Kysela Date: Mon, 7 Jul 2014 15:13:12 +0200 Message-Id: <1404738792-20344-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.0.1 Cc: linux-tegra@vger.kernel.org, Dylan Reid , alsa-devel@alsa-project.org, Stephen Warren Subject: [alsa-devel] [PATCH] ALSA: hda: Fix build warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding 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 --- sound/pci/hda/hda_tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c index dc4bb21ed17b..227990bc02e3 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c @@ -235,6 +235,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); @@ -242,7 +243,6 @@ static void hda_tegra_disable_clocks(struct hda_tegra *data) clk_disable_unprepare(data->hda_clk); } -#ifdef CONFIG_PM_SLEEP /* * power management */