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

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

mmc: bfin_sdh: 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: Sonic Zhang <sonic.zhang@analog.com>
Cc: uclinux-dist-devel@blackfin.uclinux.org
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Acked-by: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 1e63d485
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -639,21 +639,15 @@ static int sdh_remove(struct platform_device *pdev)
#ifdef CONFIG_PM
static int sdh_suspend(struct platform_device *dev, pm_message_t state)
{
	struct mmc_host *mmc = platform_get_drvdata(dev);
	struct bfin_sd_host *drv_data = get_sdh_data(dev);
	int ret = 0;

	if (mmc)
		ret = mmc_suspend_host(mmc);

	peripheral_free_list(drv_data->pin_req);

	return ret;
	return 0;
}

static int sdh_resume(struct platform_device *dev)
{
	struct mmc_host *mmc = platform_get_drvdata(dev);
	struct bfin_sd_host *drv_data = get_sdh_data(dev);
	int ret = 0;

@@ -664,10 +658,6 @@ static int sdh_resume(struct platform_device *dev)
	}

	sdh_reset();

	if (mmc)
		ret = mmc_resume_host(mmc);

	return ret;
}
#else