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: 5242001 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@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 7E06A9F2F1 for ; Thu, 6 Nov 2014 13:28:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A92E32010F for ; Thu, 6 Nov 2014 13:28:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8F84720107 for ; Thu, 6 Nov 2014 13:28:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751240AbaKFN1w (ORCPT ); Thu, 6 Nov 2014 08:27:52 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:40644 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751310AbaKFN1u (ORCPT ); Thu, 6 Nov 2014 08:27:50 -0500 Received: by mail-wi0-f178.google.com with SMTP id bs8so1473767wib.11 for ; Thu, 06 Nov 2014 05:27:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+Yiip9oLXfnAtcpeJ/wzjV1D0BtNy4iXLzlVlxWDJoo=; b=BQBeNkg3pjQYXoKBLixVwMT8LbnF0oj8EI8+Nmzh+R/glZIV9Hv3yMuatO5Vgx/82u COvNWEY+1SklXxdSmbkA302A66tnMwmrRutgdgEi4zjzopd6wQWp3ErTRgI0Pguj8yKJ JLRLPaVemc/sAOBKXGTk5dStL0M8xNe6y8+UlA390XbiQDRgm859IU94hUtgpeD0QdvD tPL8ZCE3AnPvhkLnii7asetKMFQK//tvwpMGZa2hGZLrM6o2o7ctZ50AcvBsJnCoYx4O a858kn/BG5RsexQhFFNHERqrOGgOxrux2U74zGyWYkC/ndTx3tx/9RA9tVA2Ie+SHiM7 Y3Iw== X-Gm-Message-State: ALoCoQkCM8N+lJYmj6kWXXeD39IRZiGxNKyf6tIUFITWH+ERSdJamY1Nqr1zlgwkQ/VZ3DlFXwj8 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 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);