Commit 710dec95 authored by Ulf Hansson's avatar Ulf Hansson Committed by Chris Ball

mmc: tmio: Adapt to proper PM configs for exported functions

Since the users of the exported PM functions are now using the modern
PM ops macros, we can convert to the proper corresponding PM configs.
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Acked-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarChris Ball <chris@printf.net>
parent c8964481
...@@ -162,16 +162,15 @@ static inline void tmio_mmc_abort_dma(struct tmio_mmc_host *host) ...@@ -162,16 +162,15 @@ static inline void tmio_mmc_abort_dma(struct tmio_mmc_host *host)
} }
#endif #endif
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
int tmio_mmc_host_suspend(struct device *dev); int tmio_mmc_host_suspend(struct device *dev);
int tmio_mmc_host_resume(struct device *dev); int tmio_mmc_host_resume(struct device *dev);
#else
#define tmio_mmc_host_suspend NULL
#define tmio_mmc_host_resume NULL
#endif #endif
#ifdef CONFIG_PM_RUNTIME
int tmio_mmc_host_runtime_suspend(struct device *dev); int tmio_mmc_host_runtime_suspend(struct device *dev);
int tmio_mmc_host_runtime_resume(struct device *dev); int tmio_mmc_host_runtime_resume(struct device *dev);
#endif
static inline u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr) static inline u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr)
{ {
......
...@@ -1142,7 +1142,7 @@ void tmio_mmc_host_remove(struct tmio_mmc_host *host) ...@@ -1142,7 +1142,7 @@ void tmio_mmc_host_remove(struct tmio_mmc_host *host)
} }
EXPORT_SYMBOL(tmio_mmc_host_remove); EXPORT_SYMBOL(tmio_mmc_host_remove);
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
int tmio_mmc_host_suspend(struct device *dev) int tmio_mmc_host_suspend(struct device *dev)
{ {
struct mmc_host *mmc = dev_get_drvdata(dev); struct mmc_host *mmc = dev_get_drvdata(dev);
...@@ -1165,9 +1165,9 @@ int tmio_mmc_host_resume(struct device *dev) ...@@ -1165,9 +1165,9 @@ int tmio_mmc_host_resume(struct device *dev)
return 0; return 0;
} }
EXPORT_SYMBOL(tmio_mmc_host_resume); EXPORT_SYMBOL(tmio_mmc_host_resume);
#endif
#endif /* CONFIG_PM */ #ifdef CONFIG_PM_RUNTIME
int tmio_mmc_host_runtime_suspend(struct device *dev) int tmio_mmc_host_runtime_suspend(struct device *dev)
{ {
return 0; return 0;
...@@ -1184,5 +1184,6 @@ int tmio_mmc_host_runtime_resume(struct device *dev) ...@@ -1184,5 +1184,6 @@ int tmio_mmc_host_runtime_resume(struct device *dev)
return 0; return 0;
} }
EXPORT_SYMBOL(tmio_mmc_host_runtime_resume); EXPORT_SYMBOL(tmio_mmc_host_runtime_resume);
#endif
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment