summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2013-11-04 03:38:25 -0500
committerChris Ball <chris@printf.net>2014-01-13 12:48:06 -0500
commitd433dc63182825538b85de6a85e2ea3fad7f2917 (patch)
tree283b62980d84fd771a6b6589e7cdaf6db1efc81f /drivers/mmc
parent429a5b45fe9937812c67c9593c0112eaaa8e8583 (diff)
mmc: sdhci-pltfm: export pltfm suspend/resume api
It is helpful for platform code to use to eliminate duplicated code. Signed-off-by: Dong Aisheng <b29396@freescale.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-pltfm.c6
-rw-r--r--drivers/mmc/host/sdhci-pltfm.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index e2065a44dffc..bef250e95418 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -237,19 +237,21 @@ int sdhci_pltfm_unregister(struct platform_device *pdev)
237EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister); 237EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister);
238 238
239#ifdef CONFIG_PM 239#ifdef CONFIG_PM
240static int sdhci_pltfm_suspend(struct device *dev) 240int sdhci_pltfm_suspend(struct device *dev)
241{ 241{
242 struct sdhci_host *host = dev_get_drvdata(dev); 242 struct sdhci_host *host = dev_get_drvdata(dev);
243 243
244 return sdhci_suspend_host(host); 244 return sdhci_suspend_host(host);
245} 245}
246EXPORT_SYMBOL_GPL(sdhci_pltfm_suspend);
246 247
247static int sdhci_pltfm_resume(struct device *dev) 248int sdhci_pltfm_resume(struct device *dev)
248{ 249{
249 struct sdhci_host *host = dev_get_drvdata(dev); 250 struct sdhci_host *host = dev_get_drvdata(dev);
250 251
251 return sdhci_resume_host(host); 252 return sdhci_resume_host(host);
252} 253}
254EXPORT_SYMBOL_GPL(sdhci_pltfm_resume);
253 255
254const struct dev_pm_ops sdhci_pltfm_pmops = { 256const struct dev_pm_ops sdhci_pltfm_pmops = {
255 .suspend = sdhci_pltfm_suspend, 257 .suspend = sdhci_pltfm_suspend,
diff --git a/drivers/mmc/host/sdhci-pltfm.h b/drivers/mmc/host/sdhci-pltfm.h
index e15ced79f7ed..04bc2481e5c3 100644
--- a/drivers/mmc/host/sdhci-pltfm.h
+++ b/drivers/mmc/host/sdhci-pltfm.h
@@ -111,6 +111,8 @@ static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host)
111} 111}
112 112
113#ifdef CONFIG_PM 113#ifdef CONFIG_PM
114extern int sdhci_pltfm_suspend(struct device *dev);
115extern int sdhci_pltfm_resume(struct device *dev);
114extern const struct dev_pm_ops sdhci_pltfm_pmops; 116extern const struct dev_pm_ops sdhci_pltfm_pmops;
115#define SDHCI_PLTFM_PMOPS (&sdhci_pltfm_pmops) 117#define SDHCI_PLTFM_PMOPS (&sdhci_pltfm_pmops)
116#else 118#else