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

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>

authored by

Ulf Hansson and committed by
Chris Ball
ccbd4830 4ee14ec6

+1 -3
+1 -3
drivers/mmc/host/tifm_sd.c
··· 1030 1030 1031 1031 static int tifm_sd_suspend(struct tifm_dev *sock, pm_message_t state) 1032 1032 { 1033 - return mmc_suspend_host(tifm_get_drvdata(sock)); 1033 + return 0; 1034 1034 } 1035 1035 1036 1036 static int tifm_sd_resume(struct tifm_dev *sock) ··· 1044 1044 1045 1045 if (rc) 1046 1046 host->eject = 1; 1047 - else 1048 - rc = mmc_resume_host(mmc); 1049 1047 1050 1048 return rc; 1051 1049 }