From patchwork Fri Apr 4 05:59:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 27727 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E0AE02036E for ; Fri, 4 Apr 2014 06:00:08 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id bj1sf10873339pad.7 for ; Thu, 03 Apr 2014 23:00:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=L9PimSz8xbt1HF8PYcm0JUPFaLyPmUjAUdo1VjY94jI=; b=N2obD5eWN2eS4HhsXjAlpa6wM0Q+F25jvKFcNCk/shmCEmpOD4SuTGPBkKXfLU1TNd z8z7MIwaUARD1URYUwxNmgsNJ5VgfG0uSRbNNwg4FGqqpJRqq0/M/xYm3+vUi9mpryHC Vs79wYBrZT8BogRG7QBpBXd1u7EXhB1qZVgQC2hh5qSNV5UFOPT64B5m5/gzrLVqCLWm uZJ4nDCkA0Dy43awsvbE3yYCS1AAmsHA2rJGdG0SpPHImIC9HbIx4NA8CgYvGm6ThPkc KVlE9Z9cuHXZEvpxZB594Q+dV0Ctz8brNKJ2yK/YesM+kBMmSJnsrqKElo0LtTuUsxci gPmA== X-Gm-Message-State: ALoCoQknCP8NXmeyW/d6Oh9cZdWyLfDWbE15UuYZXbCBytklB0hle6MB9LxNGNOF53RhihdZGx8O X-Received: by 10.66.188.238 with SMTP id gd14mr6724025pac.18.1396591208053; Thu, 03 Apr 2014 23:00:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.234 with SMTP id 97ls972760qgp.68.gmail; Thu, 03 Apr 2014 23:00:07 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr6694167vcm.11.1396591207959; Thu, 03 Apr 2014 23:00:07 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id sw4si677682vdc.66.2014.04.03.23.00.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:00:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id id10so2738673vcb.26 for ; Thu, 03 Apr 2014 23:00:07 -0700 (PDT) X-Received: by 10.220.133.80 with SMTP id e16mr6613609vct.13.1396591207817; Thu, 03 Apr 2014 23:00:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp86973vcv; Thu, 3 Apr 2014 23:00:07 -0700 (PDT) X-Received: by 10.194.119.168 with SMTP id kv8mr16660728wjb.41.1396591206587; Thu, 03 Apr 2014 23:00:06 -0700 (PDT) Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 43si10773037eei.145.2014.04.03.23.00.05 for ; Thu, 03 Apr 2014 23:00:06 -0700 (PDT) Received-SPF: neutral (google.com: 77.48.224.243 is neither permitted nor denied by best guess record for domain of alsa-devel-bounces@alsa-project.org) client-ip=77.48.224.243; Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6FC2B265765; Fri, 4 Apr 2014 08:00:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.2.4 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 23D64265741; Fri, 4 Apr 2014 07:59:55 +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 4334E26573F; Fri, 4 Apr 2014 07:59:51 +0200 (CEST) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by alsa0.perex.cz (Postfix) with ESMTP id EDCE726572A for ; Fri, 4 Apr 2014 07:59:42 +0200 (CEST) Received: by mail-pb0-f54.google.com with SMTP id ma3so2949079pbc.41 for ; Thu, 03 Apr 2014 22:59:41 -0700 (PDT) X-Received: by 10.66.171.206 with SMTP id aw14mr12831079pac.48.1396591180904; Thu, 03 Apr 2014 22:59:40 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id jd5sm15253045pbb.18.2014.04.03.22.59.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 22:59:40 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Date: Fri, 4 Apr 2014 11:29:08 +0530 Message-Id: <1396591153-10924-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Cc: sachin.kamat@linaro.org, broonie@kernel.org, lgirdwood@gmail.com Subject: [alsa-devel] [PATCH 1/6] ASoC: pcm512x: Use CONFIG_PM_RUNTIME macro X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Fixes the following compilation warnings: sound/soc/codecs/pcm512x.c:520:12: warning: ‘pcm512x_suspend’ defined but not used [-Wunused-function] sound/soc/codecs/pcm512x.c:545:12: warning: ‘pcm512x_resume’ defined but not used [-Wunused-function] Signed-off-by: Sachin Kamat --- sound/soc/codecs/pcm512x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 4b4c0c7..5112420 100644 --- a/sound/soc/codecs/pcm512x.c +++ b/sound/soc/codecs/pcm512x.c @@ -517,6 +517,7 @@ void pcm512x_remove(struct device *dev) } EXPORT_SYMBOL_GPL(pcm512x_remove); +#ifdef CONFIG_PM_RUNTIME static int pcm512x_suspend(struct device *dev) { struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); @@ -578,6 +579,7 @@ static int pcm512x_resume(struct device *dev) return 0; } +#endif const struct dev_pm_ops pcm512x_pm_ops = { SET_RUNTIME_PM_OPS(pcm512x_suspend, pcm512x_resume, NULL)