diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2013-09-25 14:30:03 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-10-30 20:28:23 -0400 |
commit | ccbd483027d8b1cb1c85e2477cd9247d43515046 (patch) | |
tree | 4f382896b59e25e21ea51d015e859930addf474e /drivers/mmc | |
parent | 4ee14ec65810702a95d195757d307c41ecfd1c71 (diff) | |
download | op-kernel-dev-ccbd483027d8b1cb1c85e2477cd9247d43515046.zip op-kernel-dev-ccbd483027d8b1cb1c85e2477cd9247d43515046.tar.gz |
mmc: tifm_sd: 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: Alex Dubov <oakad@yahoo.com>
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/tifm_sd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/host/tifm_sd.c b/drivers/mmc/host/tifm_sd.c index 43d9628..d1760eb 100644 --- a/drivers/mmc/host/tifm_sd.c +++ b/drivers/mmc/host/tifm_sd.c @@ -1030,7 +1030,7 @@ static void tifm_sd_remove(struct tifm_dev *sock) static int tifm_sd_suspend(struct tifm_dev *sock, pm_message_t state) { - return mmc_suspend_host(tifm_get_drvdata(sock)); + return 0; } static int tifm_sd_resume(struct tifm_dev *sock) @@ -1044,8 +1044,6 @@ static int tifm_sd_resume(struct tifm_dev *sock) if (rc) host->eject = 1; - else - rc = mmc_resume_host(mmc); return rc; } |