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

mmc: sdricoh_cs: 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: Sascha Sommer <saschasommer@freenet.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Sascha Sommer <saschasommer@freenet.de>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Ulf Hansson and committed by
Chris Ball
b2822d37 ff71c4bc

-3
-3
drivers/mmc/host/sdricoh_cs.c
··· 516 516 #ifdef CONFIG_PM 517 517 static int sdricoh_pcmcia_suspend(struct pcmcia_device *link) 518 518 { 519 - struct mmc_host *mmc = link->priv; 520 519 dev_dbg(&link->dev, "suspend\n"); 521 - mmc_suspend_host(mmc); 522 520 return 0; 523 521 } 524 522 ··· 525 527 struct mmc_host *mmc = link->priv; 526 528 dev_dbg(&link->dev, "resume\n"); 527 529 sdricoh_reset(mmc_priv(mmc)); 528 - mmc_resume_host(mmc); 529 530 return 0; 530 531 } 531 532 #else