Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dong Aisheng and committed by
Chris Ball
d433dc63 429a5b45

+6 -2
+4 -2
drivers/mmc/host/sdhci-pltfm.c
··· 237 237 EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister); 238 238 239 239 #ifdef CONFIG_PM 240 - static int sdhci_pltfm_suspend(struct device *dev) 240 + int sdhci_pltfm_suspend(struct device *dev) 241 241 { 242 242 struct sdhci_host *host = dev_get_drvdata(dev); 243 243 244 244 return sdhci_suspend_host(host); 245 245 } 246 + EXPORT_SYMBOL_GPL(sdhci_pltfm_suspend); 246 247 247 - static int sdhci_pltfm_resume(struct device *dev) 248 + int sdhci_pltfm_resume(struct device *dev) 248 249 { 249 250 struct sdhci_host *host = dev_get_drvdata(dev); 250 251 251 252 return sdhci_resume_host(host); 252 253 } 254 + EXPORT_SYMBOL_GPL(sdhci_pltfm_resume); 253 255 254 256 const struct dev_pm_ops sdhci_pltfm_pmops = { 255 257 .suspend = sdhci_pltfm_suspend,
+2
drivers/mmc/host/sdhci-pltfm.h
··· 111 111 } 112 112 113 113 #ifdef CONFIG_PM 114 + extern int sdhci_pltfm_suspend(struct device *dev); 115 + extern int sdhci_pltfm_resume(struct device *dev); 114 116 extern const struct dev_pm_ops sdhci_pltfm_pmops; 115 117 #define SDHCI_PLTFM_PMOPS (&sdhci_pltfm_pmops) 116 118 #else