From patchwork Wed Jul 27 11:32:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 72861 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp251499qga; Wed, 27 Jul 2016 04:32:49 -0700 (PDT) X-Received: by 10.25.126.2 with SMTP id z2mr11787764lfc.195.1469619146300; Wed, 27 Jul 2016 04:32:26 -0700 (PDT) Return-Path: Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com. [2a00:1450:4010:c07::236]) by mx.google.com with ESMTPS id f69si2974268lji.20.2016.07.27.04.32.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jul 2016 04:32:26 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::236 as permitted sender) client-ip=2a00:1450:4010:c07::236; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::236 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x236.google.com with SMTP id f93so25148888lfi.2 for ; Wed, 27 Jul 2016 04:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oMik+dSEBOk8DMHqCNbPBtg5+lPH38KNOPLx8D8K/lQ=; b=XFarlBcRohqgxst7GbBK3xcrzdAbHMOqeEy6sDKfNS8taJzNgXUUNxSS6jgk2jbOyK dhX4GgIhGpxRax7HF93QHHpccqO6hEBWBJ0aod8BHxQyWNZJRchPe0q6qb5R8x4jEFct VChis7XEwd/2QKvNpuJYGe1nnyIh+eOQImmbQ= 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:in-reply-to :references; bh=oMik+dSEBOk8DMHqCNbPBtg5+lPH38KNOPLx8D8K/lQ=; b=Ddwrb7ZgTwSF+5LCjYKIR+DcTPxGxfp/gPrj8wO4JhkZMZU9ipTpIfcEyYhm2fhtmW ZV7wSsuhxY98HQq0UqFAZr86/dxIXLmpHqzDOAd3MRWOhCjjergPg0w6jya1fA7lwch+ zbyAtCDhDaPQmI2/c6BoQgqLuxboVMGWlq12dVborpEXpkfey/03+O2By1SjgNa3NuAd egvoDmVw0sUb/dIRfvJbt3nNrDnZcslyFWToQbQ2phHaBIJEahqw90xSlGer2lnMxcK9 zmthtKgrySdjJZJumOZvBtyOKUX+2Cdo++In+vn8Vos/1tr5ol2I22MCjFaoGA8nSb+D TRxw== X-Gm-Message-State: AEkoouue4CwZ8D3BzmfovkmFCXMZpofml4Bo2haUo8e/EGFlmDS/2IBV9gRbY4JU/Br5YUDI8Vc= X-Received: by 10.25.151.132 with SMTP id z126mr9116636lfd.18.1469619145861; Wed, 27 Jul 2016 04:32:25 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-155-4-128-67.na.cust.bahnhof.se. [155.4.128.67]) by smtp.gmail.com with ESMTPSA id h62sm911164lji.28.2016.07.27.04.32.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jul 2016 04:32:24 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter Cc: Arnd Bergmann Subject: [PATCH 09/11] mmc: sdhci-pltfm: Make sdhci_pltfm_suspend|resume() static Date: Wed, 27 Jul 2016 13:32:05 +0200 Message-Id: <1469619127-29283-10-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469619127-29283-1-git-send-email-ulf.hansson@linaro.org> References: <1469619127-29283-1-git-send-email-ulf.hansson@linaro.org> There are no users left of these exported APIs, so let's make them static. Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-pltfm.c | 6 ++---- drivers/mmc/host/sdhci-pltfm.h | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) -- 1.9.1 diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 64f287a..7b1aacc 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -216,21 +216,19 @@ int sdhci_pltfm_unregister(struct platform_device *pdev) EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister); #ifdef CONFIG_PM -int sdhci_pltfm_suspend(struct device *dev) +static int sdhci_pltfm_suspend(struct device *dev) { struct sdhci_host *host = dev_get_drvdata(dev); return sdhci_suspend_host(host); } -EXPORT_SYMBOL_GPL(sdhci_pltfm_suspend); -int sdhci_pltfm_resume(struct device *dev) +static int sdhci_pltfm_resume(struct device *dev) { struct sdhci_host *host = dev_get_drvdata(dev); return sdhci_resume_host(host); } -EXPORT_SYMBOL_GPL(sdhci_pltfm_resume); const struct dev_pm_ops sdhci_pltfm_pmops = { .suspend = sdhci_pltfm_suspend, diff --git a/drivers/mmc/host/sdhci-pltfm.h b/drivers/mmc/host/sdhci-pltfm.h index d38053b..6c99210 100644 --- a/drivers/mmc/host/sdhci-pltfm.h +++ b/drivers/mmc/host/sdhci-pltfm.h @@ -110,8 +110,6 @@ static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host) } #ifdef CONFIG_PM -extern int sdhci_pltfm_suspend(struct device *dev); -extern int sdhci_pltfm_resume(struct device *dev); extern const struct dev_pm_ops sdhci_pltfm_pmops; #define SDHCI_PLTFM_PMOPS (&sdhci_pltfm_pmops) #else