From patchwork Thu Oct 2 07:28:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 5016591 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 234629F327 for ; Thu, 2 Oct 2014 07:28:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 617B220270 for ; Thu, 2 Oct 2014 07:28:31 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 0D2432026F for ; Thu, 2 Oct 2014 07:28:30 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 05F6C261549; Thu, 2 Oct 2014 09:28:29 +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, 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 91DAD260523; Thu, 2 Oct 2014 09:28:21 +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 3E1F5260523; Thu, 2 Oct 2014 09:28:21 +0200 (CEST) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by alsa0.perex.cz (Postfix) with ESMTP id 32F0A261543 for ; Thu, 2 Oct 2014 09:28:04 +0200 (CEST) Received: by mail-wi0-f179.google.com with SMTP id d1so3033037wiv.12 for ; Thu, 02 Oct 2014 00:28:02 -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=C1Mm9aahj6zVykF2mVYe3OjT5zXYs01E0Qdyk+E6plk=; b=RjMN4xdcFnn/mKAnolJ3atPfE5xzCaqW64i0A81P2jheR7rAIaErALlDd+wx1xW/U+ bwOJmkOSAgI3z5CVXi4OTYsK/TbCUSnNET6GFu/M5XGlCtZSYWd9DdR/Ij181dgwaMTr tyntVx1m/Gw7AXKz13EXDdEyPZ9QAfmjM+2IKa0fXtO698RWGulZH2q3uRFcupd1oHC1 2JxRlHWCmeOebmvub9g9x2g1EXO6FV86KmMoqe135iD2UX+cOT06pUUfgA2KS5esvYYp 4eCV7+igCJjgsFgQqFu/bigRlIuGBgq4f0xm/gPvLPfnXAFHgFTp5JR/0O95+WzYmDy2 Z3ZA== X-Received: by 10.180.231.9 with SMTP id tc9mr1777563wic.58.1412234881736; Thu, 02 Oct 2014 00:28:01 -0700 (PDT) Received: from localhost (port-49109.pppoe.wtnet.de. [46.59.192.110]) by mx.google.com with ESMTPSA id hk8sm245416wib.18.2014.10.02.00.28.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Oct 2014 00:28:01 -0700 (PDT) From: Thierry Reding To: Mark Brown Date: Thu, 2 Oct 2014 09:28:00 +0200 Message-Id: <1412234880-8308-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.1.0 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ASoC: tas2552: Fix compilation warning for !PM_RUNTIME 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 tas2552_sw_shutdown() function is only used by runtime suspend support, so only build it when necessary. Signed-off-by: Thierry Reding --- sound/soc/codecs/tas2552.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index 1ed57a7e57b6..f039dc825971 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c @@ -115,6 +115,7 @@ static const struct snd_soc_dapm_route tas2552_audio_map[] = { {"ClassD", NULL, "PLL"}, }; +#ifdef CONFIG_PM_RUNTIME static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) { u8 cfg1_reg; @@ -127,6 +128,7 @@ static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) snd_soc_update_bits(tas_data->codec, TAS2552_CFG_1, TAS2552_SWS_MASK, cfg1_reg); } +#endif static int tas2552_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params,