From patchwork Thu Oct 22 22:56:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 7468021 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D3BB9BEEA4 for ; Thu, 22 Oct 2015 22:57:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CB2D52085F for ; Thu, 22 Oct 2015 22:57:24 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 693C220549 for ; Thu, 22 Oct 2015 22:57:23 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B52CD266AAD; Fri, 23 Oct 2015 00:57:21 +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=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 0C03B266991; Fri, 23 Oct 2015 00:57:14 +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 9C3532669ED; Fri, 23 Oct 2015 00:57:12 +0200 (CEST) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by alsa0.perex.cz (Postfix) with ESMTP id 4B0572668B5 for ; Fri, 23 Oct 2015 00:57:05 +0200 (CEST) Received: by pacfv9 with SMTP id fv9so103323326pac.3 for ; Thu, 22 Oct 2015 15:57:04 -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=X+ldkaGFrlSVG+Sv0ARcLfHQ6mHWbbX/Zw9DboqEVrQ=; b=FNtYDqqTSKri/P/p0QFP59rzeLXtwZ1kAaN+xQkyM5ql95cy/Vmix0zdWfk+ih26oF lqITtYgf5V67TCdI/tuLp1Dmhd9pxZtsDvACMFyaVludn0upzm+CtbM8P9uMsxzkHjzS ERJj8IaSBtVIl4LHocOnLcpmmwb8NECIEsTggn3MIhJZhxyLCsyIhGK1nx8wEShrvHQd 6sMrv0eWEsQeu7wmtJLFAEF412nm/ZXRydJ+lIUEVfp/xE77KIvPQnIXyQhe1TbXML4c 70CWe7xCzwEyNVek/bAq9MY/UaBjZGFAFPh/dpR3Odf551ml++Fg7zG3AxFH46qG5d6D do8g== X-Received: by 10.66.181.234 with SMTP id dz10mr824376pac.51.1445554624156; Thu, 22 Oct 2015 15:57:04 -0700 (PDT) Received: from Asurada-CZ80.hsd1.ca.comcast.net (c-73-189-64-245.hsd1.ca.comcast.net. [73.189.64.245]) by smtp.gmail.com with ESMTPSA id xm4sm15627726pab.27.2015.10.22.15.57.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Oct 2015 15:57:03 -0700 (PDT) From: Nicolin Chen To: broonie@kernel.org Date: Thu, 22 Oct 2015 15:56:40 -0700 Message-Id: <1445554600-43889-1-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, Xiubo.Lee@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, timur@tabi.org Subject: [alsa-devel] [PATCH] ASoC: fsl: Use #ifdef instead of #if for CONFIG_PM_SLEEP 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 Change them to #ifdef as CONFIG_PM_SLEEP might not be defined at all. Reported-by: kbuild test robot Signed-off-by: Nicolin Chen --- sound/soc/fsl/fsl_esai.c | 2 +- sound/soc/fsl/fsl_sai.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c index aab675a..59f234e 100644 --- a/sound/soc/fsl/fsl_esai.c +++ b/sound/soc/fsl/fsl_esai.c @@ -900,7 +900,7 @@ static const struct of_device_id fsl_esai_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, fsl_esai_dt_ids); -#if CONFIG_PM_SLEEP +#ifdef CONFIG_PM_SLEEP static int fsl_esai_suspend(struct device *dev) { struct fsl_esai *esai = dev_get_drvdata(dev); diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index f652f2e..15173e9 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -807,7 +807,7 @@ static const struct of_device_id fsl_sai_ids[] = { }; MODULE_DEVICE_TABLE(of, fsl_sai_ids); -#if CONFIG_PM_SLEEP +#ifdef CONFIG_PM_SLEEP static int fsl_sai_suspend(struct device *dev) { struct fsl_sai *sai = dev_get_drvdata(dev);