Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d62c9577 authored by Ulf Hansson's avatar Ulf Hansson Committed by Chris Ball
Browse files

mmc: tmio: 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: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Ian Molton <ian@mnementh.co.uk>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent cb3ca1ae
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -1145,12 +1145,9 @@ int tmio_mmc_host_suspend(struct device *dev)
{
	struct mmc_host *mmc = dev_get_drvdata(dev);
	struct tmio_mmc_host *host = mmc_priv(mmc);
	int ret = mmc_suspend_host(mmc);

	if (!ret)
	tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_ALL);

	return ret;
	return 0;
}
EXPORT_SYMBOL(tmio_mmc_host_suspend);

@@ -1163,7 +1160,7 @@ int tmio_mmc_host_resume(struct device *dev)

	/* The MMC core will perform the complete set up */
	host->resuming = true;
	return mmc_resume_host(mmc);
	return 0;
}
EXPORT_SYMBOL(tmio_mmc_host_resume);