From: stefan@agner.ch (Stefan Agner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 2/2] mmc: sdhci-pxav3: use runtime_pm enabled pltfm suspend/resume
Date: Thu, 21 May 2015 09:15:04 +0200 [thread overview]
Message-ID: <1432192504-3601-2-git-send-email-stefan@agner.ch> (raw)
In-Reply-To: <1432192504-3601-1-git-send-email-stefan@agner.ch>
Use the runtime_pm enabled platform suspend/resume functions.
Signed-off-by: Stefan Agner <stefan@agner.ch>
---
drivers/mmc/host/sdhci-pxav3.c | 30 +-----------------------------
1 file changed, 1 insertion(+), 29 deletions(-)
diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
index b5103a2..5ac4030 100644
--- a/drivers/mmc/host/sdhci-pxav3.c
+++ b/drivers/mmc/host/sdhci-pxav3.c
@@ -501,34 +501,6 @@ static int sdhci_pxav3_remove(struct platform_device *pdev)
return 0;
}
-#ifdef CONFIG_PM_SLEEP
-static int sdhci_pxav3_suspend(struct device *dev)
-{
- int ret;
- struct sdhci_host *host = dev_get_drvdata(dev);
-
- pm_runtime_get_sync(dev);
- ret = sdhci_suspend_host(host);
- pm_runtime_mark_last_busy(dev);
- pm_runtime_put_autosuspend(dev);
-
- return ret;
-}
-
-static int sdhci_pxav3_resume(struct device *dev)
-{
- int ret;
- struct sdhci_host *host = dev_get_drvdata(dev);
-
- pm_runtime_get_sync(dev);
- ret = sdhci_resume_host(host);
- pm_runtime_mark_last_busy(dev);
- pm_runtime_put_autosuspend(dev);
-
- return ret;
-}
-#endif
-
#ifdef CONFIG_PM
static int sdhci_pxav3_runtime_suspend(struct device *dev)
{
@@ -564,7 +536,7 @@ static int sdhci_pxav3_runtime_resume(struct device *dev)
#ifdef CONFIG_PM
static const struct dev_pm_ops sdhci_pxav3_pmops = {
- SET_SYSTEM_SLEEP_PM_OPS(sdhci_pxav3_suspend, sdhci_pxav3_resume)
+ SET_SYSTEM_SLEEP_PM_OPS(sdhci_pltfm_rpm_suspend, sdhci_pltfm_rpm_resume)
SET_RUNTIME_PM_OPS(sdhci_pxav3_runtime_suspend,
sdhci_pxav3_runtime_resume, NULL)
};
--
2.4.1
next prev parent reply other threads:[~2015-05-21 7:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-21 7:15 [PATCH v3 1/2] mmc: sdhci: fix abort due to missing runtime PM Stefan Agner
2015-05-21 7:15 ` Stefan Agner [this message]
2015-05-27 10:05 ` Dong Aisheng
2015-05-27 10:40 ` Stefan Agner
2015-07-30 11:37 ` Stefan Agner
2015-08-25 12:04 ` Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1432192504-3601-2-git-send-email-stefan@agner.ch \
--to=stefan@agner.ch \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).