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: 9249713 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D6A76077C for ; Wed, 27 Jul 2016 11:32:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3CEE271FD for ; Wed, 27 Jul 2016 11:32:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E85FB27BF7; Wed, 27 Jul 2016 11:32:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57CF2271FD for ; Wed, 27 Jul 2016 11:32:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755820AbcG0Lc0 (ORCPT ); Wed, 27 Jul 2016 07:32:26 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:33602 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755805AbcG0Lc0 (ORCPT ); Wed, 27 Jul 2016 07:32:26 -0400 Received: by mail-lf0-f54.google.com with SMTP id b199so25208328lfe.0 for ; Wed, 27 Jul 2016 04:32:25 -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=XtsOqCxnENerwicSr+qXZlgDWDZTLtZP7JnZhNNHkkwNDp715kPcKOY0kvL/Eyih+P AA5sleZd1yObwpiRTDow8QnwdYLzsc0NC+tGxpd9GfNUWlCk4E2JtGOo7ualvgSu2+W0 RrnbGqbGSPwjYjZHH16gpzM6Ucr9yTzvPT/TSIjxTq07v2UTdtjmL97FpDAPvoDq59ul xTkLdKS7Rj8mAzxZW5xfEGGR+dczceCQDP0ftUsSxAOaToAVO2kgYDN/eT1Knv9q9mLY qJJJjA6wOKpqzPocZcnUXkltwkzK8q2D7ttTPDy2/tXgrBeDerLPed7ibBGVzRGCi5Vg oLVA== X-Gm-Message-State: AEkoousYGxV9yL+l12RuRf6SuWTe3uyVopHsclPgOnu7qJ4XTUR5uxdAoFDW0+1YfJMWF7Dc X-Received: by 10.25.139.135 with SMTP id n129mr12156432lfd.111.1469619144486; Wed, 27 Jul 2016 04:32:24 -0700 (PDT) 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> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Dong Aisheng --- drivers/mmc/host/sdhci-esdhc-imx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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