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

mmc: jz4740: 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: Lars-Peter Clausen <lars@metafoo.de>
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
c91c413e 1eeaadf3

-4
-4
drivers/mmc/host/jz4740_mmc.c
··· 880 880 { 881 881 struct jz4740_mmc_host *host = dev_get_drvdata(dev); 882 882 883 - mmc_suspend_host(host->mmc); 884 - 885 883 jz_gpio_bulk_suspend(jz4740_mmc_pins, jz4740_mmc_num_pins(host)); 886 884 887 885 return 0; ··· 890 892 struct jz4740_mmc_host *host = dev_get_drvdata(dev); 891 893 892 894 jz_gpio_bulk_resume(jz4740_mmc_pins, jz4740_mmc_num_pins(host)); 893 - 894 - mmc_resume_host(host->mmc); 895 895 896 896 return 0; 897 897 }