diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2013-09-26 04:36:06 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-10-30 20:28:35 -0400 |
commit | d62c9577f950b1ce9b53200542c251ba8dfff344 (patch) | |
tree | 2fcd8603bc120b2925f48bfb1d0bc2767c592427 /drivers/mmc | |
parent | cb3ca1aed991cd67ae76aec682e63633a7bead5b (diff) |
mmc: tmio: Move away from using deprecated APIs
Suspend and resume of cards are being handled from the protocol layer
and consequently the mmc_suspend|resume_host APIs are deprecated.
This means we can simplify the suspend|resume callbacks by removing the
use of the deprecated APIs.
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Ian Molton <ian@mnementh.co.uk>
Signed-off-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/tmio_mmc_pio.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index b3802256f954..f3b2d8ca1eca 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c | |||
@@ -1145,12 +1145,9 @@ int tmio_mmc_host_suspend(struct device *dev) | |||
1145 | { | 1145 | { |
1146 | struct mmc_host *mmc = dev_get_drvdata(dev); | 1146 | struct mmc_host *mmc = dev_get_drvdata(dev); |
1147 | struct tmio_mmc_host *host = mmc_priv(mmc); | 1147 | struct tmio_mmc_host *host = mmc_priv(mmc); |
1148 | int ret = mmc_suspend_host(mmc); | ||
1149 | 1148 | ||
1150 | if (!ret) | 1149 | tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_ALL); |
1151 | tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_ALL); | 1150 | return 0; |
1152 | |||
1153 | return ret; | ||
1154 | } | 1151 | } |
1155 | EXPORT_SYMBOL(tmio_mmc_host_suspend); | 1152 | EXPORT_SYMBOL(tmio_mmc_host_suspend); |
1156 | 1153 | ||
@@ -1163,7 +1160,7 @@ int tmio_mmc_host_resume(struct device *dev) | |||
1163 | 1160 | ||
1164 | /* The MMC core will perform the complete set up */ | 1161 | /* The MMC core will perform the complete set up */ |
1165 | host->resuming = true; | 1162 | host->resuming = true; |
1166 | return mmc_resume_host(mmc); | 1163 | return 0; |
1167 | } | 1164 | } |
1168 | EXPORT_SYMBOL(tmio_mmc_host_resume); | 1165 | EXPORT_SYMBOL(tmio_mmc_host_resume); |
1169 | 1166 | ||