mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
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>
This commit is contained in:
parent
ff71c4bcb0
commit
b2822d3725
1 changed files with 0 additions and 3 deletions
|
@ -516,9 +516,7 @@ static void sdricoh_pcmcia_detach(struct pcmcia_device *link)
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
static int sdricoh_pcmcia_suspend(struct pcmcia_device *link)
|
static int sdricoh_pcmcia_suspend(struct pcmcia_device *link)
|
||||||
{
|
{
|
||||||
struct mmc_host *mmc = link->priv;
|
|
||||||
dev_dbg(&link->dev, "suspend\n");
|
dev_dbg(&link->dev, "suspend\n");
|
||||||
mmc_suspend_host(mmc);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -527,7 +525,6 @@ static int sdricoh_pcmcia_resume(struct pcmcia_device *link)
|
||||||
struct mmc_host *mmc = link->priv;
|
struct mmc_host *mmc = link->priv;
|
||||||
dev_dbg(&link->dev, "resume\n");
|
dev_dbg(&link->dev, "resume\n");
|
||||||
sdricoh_reset(mmc_priv(mmc));
|
sdricoh_reset(mmc_priv(mmc));
|
||||||
mmc_resume_host(mmc);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue