From patchwork Wed Jul 27 11:32:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 72860 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp251464qga; Wed, 27 Jul 2016 04:32:45 -0700 (PDT) X-Received: by 10.25.5.205 with SMTP id 196mr11455848lff.6.1469619144831; Wed, 27 Jul 2016 04:32:24 -0700 (PDT) Return-Path: Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com. [2a00:1450:4010:c07::22d]) by mx.google.com with ESMTPS id f82si2964043lfi.179.2016.07.27.04.32.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jul 2016 04:32:24 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22d as permitted sender) client-ip=2a00:1450:4010:c07::22d; 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::22d as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x22d.google.com with SMTP id l69so25160561lfg.1 for ; Wed, 27 Jul 2016 04:32:24 -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=Lmqrz/OHr+0Mj20GLAn4eHjucxiu2DptUmXph9i1VjY=; b=RwnyBoe5qyiQmOIoxGD3yxJWr70kA3PNlbBaufBFHP82j66PdblHsqevuqaghMSSHk KbaQig9ZG3F8IE1n45SYKDhAbJ2xhX6oeWd5fp3chKuSjr36fvDxmgCk8+866AB4Fufo gTV0WuoccEXaf0Z6+pH9TRPwktiU6Yk3YzoWs= 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=Lmqrz/OHr+0Mj20GLAn4eHjucxiu2DptUmXph9i1VjY=; b=HLdrPYe43yT305lg2kW029slz/bfvuf4DU8JMvjvb+pDoKl/1Q1w20s4y0RHdy/EP6 NyNvaUEMn9u2gVATIzp+VL4vLnncf1cc/HZCVi0Rpjb4g0IpFx+2x6jrnhXlN+frx//x Ir/Ye3DLh5mUCqN/3fDoaOUELeTo0rWHw9IyuGoFt9TVTKEUcsJM5V828Hxg6KCp+DoS F18aQLe4b4wCyEuJ0bsMfaYdr2MYGd1lfpHi40tVo4+gIihs5g9rjMz7zlFwfnQ/gMjG W/dAK/DhFjDBzWCDfpRkQ4vmC8RNmqWI0IJ0Yoa9aRQpKW+XZclv+zMwNzuCdU0T0+/1 dowQ== X-Gm-Message-State: AEkoout0CAHo4jow1JuqlN0/1+mmqJqxj19VxTCebXPeUn7lOX6JToDm4oeEnUjPWbpkCZlkNTI= X-Received: by 10.25.139.135 with SMTP id n129mr12156432lfd.111.1469619144486; Wed, 27 Jul 2016 04:32:24 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jul 2016 04:32:22 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter Cc: Arnd Bergmann Subject: [PATCH 08/11] mmc: sdhci-esdhc-imx: Use common sdhci_suspend|resume_host() Date: Wed, 27 Jul 2016 13:32:04 +0200 Message-Id: <1469619127-29283-9-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> To prepare to make the sdhci_pltfm_suspend|resume() static functions, move sdhci-esdhc-imx over to use the sdhci_suspend|resume_host(). Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-esdhc-imx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 1.9.1 diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index f5768a6..99e0b33 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1296,7 +1296,9 @@ static int sdhci_esdhc_imx_remove(struct platform_device *pdev) #ifdef CONFIG_PM_SLEEP static int sdhci_esdhc_suspend(struct device *dev) { - return sdhci_pltfm_suspend(dev); + struct sdhci_host *host = dev_get_drvdata(dev); + + return sdhci_suspend_host(host); } static int sdhci_esdhc_resume(struct device *dev) @@ -1306,7 +1308,7 @@ static int sdhci_esdhc_resume(struct device *dev) /* re-initialize hw state in case it's lost in low power mode */ sdhci_esdhc_imx_hwinit(host); - return sdhci_pltfm_resume(dev); + return sdhci_resume_host(host); } #endif