Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5326504ybv; Tue, 11 Feb 2020 13:34:22 -0800 (PST) X-Google-Smtp-Source: APXvYqy2O4NA6JbS2/M9QlcqwFnaXbNuRv+tpf0M7pKiXiDHfBNYRTpnRCl6t87W+6HGVLeojyUD X-Received: by 2002:a9d:5888:: with SMTP id x8mr6506252otg.361.1581456862050; Tue, 11 Feb 2020 13:34:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581456862; cv=none; d=google.com; s=arc-20160816; b=WiXu9BudWekApmZUjfNfVHQ73IkClc5l8VEA/EP5EFT1/QUvCgFpa4PJE9xsdFuelX DNETw63lwPuy6KVQ2HKac0Bm3q/kq15pKqxHoLMNTu+oIksytsjhwnLojlMALy/ea3e9 zMaGpVSF1jup4zm/lj5Dm6Xy5h44X30lZNzS3HH8ReFJBu/zxPspwu3jrUK0QhFzUkQ3 VBZcO4uUauEFXodtBNTpZYuCx36WX2qRXeOdyn6d3guWpcD68Sut4LZv61wRETODZDBc McL6KlcUb+HitONxLvVlWt+FqUrtG+AXg+oDnqtX9IH6oDOsTBxn3OcTzKBKuuYKfdI+ FLNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=guz9hNzZZQUpdSHQPdjKEMIdbEuh0NfXYaV607cU8I0=; b=ausgiNb3cG98fyQei1wN6FwrrXycFi6b55Y06SruirMnDUJpR5PrfgRjQvRVFGJb4K 2uzwwE+ilKx0cWxir1Mmno1tYrIdL/HJ9Qat2js9CXUNkuiR6kw8J1oHNNzel2l+jCa2 +bivcyiGS/Mezwj2SOiHxDeJTLE6SE13VQZz2rOytboEqD2W4YgaA+8h2yDR96IZI1C7 rUHzfkLXn7LwzMQ05A1JeFLDtVKR+H2Hvwx6HUC7xQhRmv80+L+XscmZHi4mj/QY2kh1 b8/omEhVZUMOKZCEBFhs1Ur6gxVR7U4gxYaQonWXIwhm94jzjtoBO+hBxrqNtGqxdflX gD8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si2603321ote.9.2020.02.11.13.34.10; Tue, 11 Feb 2020 13:34:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729306AbgBKSVG (ORCPT + 99 others); Tue, 11 Feb 2020 13:21:06 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:59458 "EHLO michel.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731174AbgBKSTd (ORCPT ); Tue, 11 Feb 2020 13:19:33 -0500 Received: from ramsan ([84.195.182.253]) by michel.telenet-ops.be with bizsmtp id 1WKW220025USYZQ06WKWaX; Tue, 11 Feb 2020 19:19:30 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1j1a89-0002oS-Uy; Tue, 11 Feb 2020 19:19:29 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1j1a89-0003yt-T7; Tue, 11 Feb 2020 19:19:29 +0100 From: Geert Uytterhoeven To: Gilad Ben-Yossef , Herbert Xu , "David S . Miller" Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , linux-crypto@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 17/34] crypto: ccree - make cc_pm_{suspend,resume}() static Date: Tue, 11 Feb 2020 19:19:11 +0100 Message-Id: <20200211181928.15178-18-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200211181928.15178-1-geert+renesas@glider.be> References: <20200211181928.15178-1-geert+renesas@glider.be> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org cc_pm_suspend() and cc_pm_resume() are not used outside drivers/crypto/ccree/cc_pm.c. Signed-off-by: Geert Uytterhoeven --- v2: - New. drivers/crypto/ccree/cc_pm.c | 12 ++++++------ drivers/crypto/ccree/cc_pm.h | 2 -- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/ccree/cc_pm.c b/drivers/crypto/ccree/cc_pm.c index 3b4927c41a177752..d39e1664fc7edfd3 100644 --- a/drivers/crypto/ccree/cc_pm.c +++ b/drivers/crypto/ccree/cc_pm.c @@ -15,11 +15,7 @@ #define POWER_DOWN_ENABLE 0x01 #define POWER_DOWN_DISABLE 0x00 -const struct dev_pm_ops ccree_pm = { - SET_RUNTIME_PM_OPS(cc_pm_suspend, cc_pm_resume, NULL) -}; - -int cc_pm_suspend(struct device *dev) +static int cc_pm_suspend(struct device *dev) { struct cc_drvdata *drvdata = dev_get_drvdata(dev); @@ -30,7 +26,7 @@ int cc_pm_suspend(struct device *dev) return 0; } -int cc_pm_resume(struct device *dev) +static int cc_pm_resume(struct device *dev) { int rc; struct cc_drvdata *drvdata = dev_get_drvdata(dev); @@ -62,6 +58,10 @@ int cc_pm_resume(struct device *dev) return 0; } +const struct dev_pm_ops ccree_pm = { + SET_RUNTIME_PM_OPS(cc_pm_suspend, cc_pm_resume, NULL) +}; + int cc_pm_get(struct device *dev) { int rc = pm_runtime_get_sync(dev); diff --git a/drivers/crypto/ccree/cc_pm.h b/drivers/crypto/ccree/cc_pm.h index 1fe1fc827f62f49e..50cac33de11832bc 100644 --- a/drivers/crypto/ccree/cc_pm.h +++ b/drivers/crypto/ccree/cc_pm.h @@ -15,8 +15,6 @@ extern const struct dev_pm_ops ccree_pm; -int cc_pm_suspend(struct device *dev); -int cc_pm_resume(struct device *dev); int cc_pm_get(struct device *dev); void cc_pm_put_suspend(struct device *dev); -- 2.17.1