From patchwork Thu Nov 6 13:27:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 40283 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5433424237 for ; Thu, 6 Nov 2014 13:27:53 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id d17sf2148900eek.3 for ; Thu, 06 Nov 2014 05:27:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=+Yiip9oLXfnAtcpeJ/wzjV1D0BtNy4iXLzlVlxWDJoo=; b=iTo8pFx8hzBhNBx9Aio0mc/zv3Sq+Ronb2qVitiu39nth24WX7s6qPIfJbHLFzKSL6 5yF1N60gwppVBTx/p2F5Dj3fT/WG70kenGMzxov8NM9DKe+z4pvLijV1VtY9uubILui8 LcnI2w3Qz5OC/QfTnwt/HSohIGp1nCDHgmR7iIwFx7zvZoxP6hnKIa9gIsAu6Oy8rmeN hdrSghp2/5AB2Mx3a20s1aZp/tPk+lWvzI2q2ZknCOsg4HVOl580NlpKv5S1Ts/3yOE+ jMKy6iEF4D1FdzCV0mtmVVzOqYrWSgRUIRrrRdoIGcUeiBwbQOFj7XsEX5pS2UPTLKnF JAxA== X-Gm-Message-State: ALoCoQmeSy6Sn3NDbpa26wJ1Q8hemP2TX4b93xm1iePdWSapgLrx9YXkmdv0xZB66RyuUGAckgYo X-Received: by 10.112.138.202 with SMTP id qs10mr739759lbb.5.1415280472472; Thu, 06 Nov 2014 05:27:52 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.197.100 with SMTP id it4ls87436lac.7.gmail; Thu, 06 Nov 2014 05:27:51 -0800 (PST) X-Received: by 10.112.11.201 with SMTP id s9mr4938646lbb.79.1415280471903; Thu, 06 Nov 2014 05:27:51 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id ei3si11433385lad.84.2014.11.06.05.27.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Nov 2014 05:27:51 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id u10so853358lbd.39 for ; Thu, 06 Nov 2014 05:27:51 -0800 (PST) X-Received: by 10.152.87.100 with SMTP id w4mr4957280laz.27.1415280471814; Thu, 06 Nov 2014 05:27:51 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp43328lbc; Thu, 6 Nov 2014 05:27:51 -0800 (PST) X-Received: by 10.194.175.67 with SMTP id by3mr5693518wjc.32.1415280471307; Thu, 06 Nov 2014 05:27:51 -0800 (PST) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com. [74.125.82.52]) by mx.google.com with ESMTPS id cw9si9438410wjc.49.2014.11.06.05.27.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Nov 2014 05:27:49 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 74.125.82.52 as permitted sender) client-ip=74.125.82.52; Received: by mail-wg0-f52.google.com with SMTP id b13so1161459wgh.25 for ; Thu, 06 Nov 2014 05:27:49 -0800 (PST) X-Received: by 10.194.172.131 with SMTP id bc3mr5892854wjc.64.1415280469366; Thu, 06 Nov 2014 05:27:49 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id n4sm7798331wjb.40.2014.11.06.05.27.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Nov 2014 05:27:48 -0800 (PST) From: Ulf Hansson To: Herbert Xu , "David S. Miller" Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Ulf Hansson Subject: [PATCH] crypto: ux500/cryp: Silence compiler warning for !CONFIG_PM Date: Thu, 6 Nov 2014 14:27:35 +0100 Message-Id: <1415280455-14056-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The system PM functions were unused when CONFIG_PM is unset. Let's move them inside CONFIG_PM_SLEEP to silence the compiler warning. Signed-off-by: Ulf Hansson --- drivers/crypto/ux500/cryp/cryp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index 92105f3..83811aa 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -1688,6 +1688,7 @@ static void ux500_cryp_shutdown(struct platform_device *pdev) } +#ifdef CONFIG_PM_SLEEP static int ux500_cryp_suspend(struct device *dev) { int ret; @@ -1768,6 +1769,7 @@ static int ux500_cryp_resume(struct device *dev) return ret; } +#endif static SIMPLE_DEV_PM_OPS(ux500_cryp_pm, ux500_cryp_suspend, ux500_cryp_resume);