aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-10-23 08:55:07 -0400
committerChris Ball <chris@printf.net>2014-02-13 22:58:09 -0500
commit710dec95d579bf59c157358cc9cf7b42907d1c0f (patch)
tree247887f2d405604c0b2429fafc0bd89abc917b18
parentc8964481d0273ef77a37ed2c627482fde3a1222c (diff)
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: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r--drivers/mmc/host/tmio_mmc.h7
-rw-r--r--drivers/mmc/host/tmio_mmc_pio.c7
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index aaa9c7e9e730..100ffe0b2faf 100644
--- a/drivers/mmc/host/tmio_mmc.h
+++ b/drivers/mmc/host/tmio_mmc.h
@@ -162,16 +162,15 @@ static inline void tmio_mmc_abort_dma(struct tmio_mmc_host *host)
162} 162}
163#endif 163#endif
164 164
165#ifdef CONFIG_PM 165#ifdef CONFIG_PM_SLEEP
166int tmio_mmc_host_suspend(struct device *dev); 166int tmio_mmc_host_suspend(struct device *dev);
167int tmio_mmc_host_resume(struct device *dev); 167int tmio_mmc_host_resume(struct device *dev);
168#else
169#define tmio_mmc_host_suspend NULL
170#define tmio_mmc_host_resume NULL
171#endif 168#endif
172 169
170#ifdef CONFIG_PM_RUNTIME
173int tmio_mmc_host_runtime_suspend(struct device *dev); 171int tmio_mmc_host_runtime_suspend(struct device *dev);
174int tmio_mmc_host_runtime_resume(struct device *dev); 172int tmio_mmc_host_runtime_resume(struct device *dev);
173#endif
175 174
176static inline u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr) 175static inline u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr)
177{ 176{
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c
index 8d8abf23a611..faf0924e71cb 100644
--- a/drivers/mmc/host/tmio_mmc_pio.c
+++ b/drivers/mmc/host/tmio_mmc_pio.c
@@ -1142,7 +1142,7 @@ void tmio_mmc_host_remove(struct tmio_mmc_host *host)
1142} 1142}
1143EXPORT_SYMBOL(tmio_mmc_host_remove); 1143EXPORT_SYMBOL(tmio_mmc_host_remove);
1144 1144
1145#ifdef CONFIG_PM 1145#ifdef CONFIG_PM_SLEEP
1146int tmio_mmc_host_suspend(struct device *dev) 1146int tmio_mmc_host_suspend(struct device *dev)
1147{ 1147{
1148 struct mmc_host *mmc = dev_get_drvdata(dev); 1148 struct mmc_host *mmc = dev_get_drvdata(dev);
@@ -1165,9 +1165,9 @@ int tmio_mmc_host_resume(struct device *dev)
1165 return 0; 1165 return 0;
1166} 1166}
1167EXPORT_SYMBOL(tmio_mmc_host_resume); 1167EXPORT_SYMBOL(tmio_mmc_host_resume);
1168#endif
1168 1169
1169#endif /* CONFIG_PM */ 1170#ifdef CONFIG_PM_RUNTIME
1170
1171int tmio_mmc_host_runtime_suspend(struct device *dev) 1171int tmio_mmc_host_runtime_suspend(struct device *dev)
1172{ 1172{
1173 return 0; 1173 return 0;
@@ -1184,5 +1184,6 @@ int tmio_mmc_host_runtime_resume(struct device *dev)
1184 return 0; 1184 return 0;
1185} 1185}
1186EXPORT_SYMBOL(tmio_mmc_host_runtime_resume); 1186EXPORT_SYMBOL(tmio_mmc_host_runtime_resume);
1187#endif
1187 1188
1188MODULE_LICENSE("GPL v2"); 1189MODULE_LICENSE("GPL v2");