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

mmc: cb710: 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: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Ulf Hansson and committed by
Chris Ball
d978a2b6 15a6af4d

+1 -9
+1 -9
drivers/mmc/host/cb710-mmc.c
··· 667 667 static int cb710_mmc_suspend(struct platform_device *pdev, pm_message_t state) 668 668 { 669 669 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); 670 - struct mmc_host *mmc = cb710_slot_to_mmc(slot); 671 - int err; 672 - 673 - err = mmc_suspend_host(mmc); 674 - if (err) 675 - return err; 676 670 677 671 cb710_mmc_enable_irq(slot, 0, ~0); 678 672 return 0; ··· 675 681 static int cb710_mmc_resume(struct platform_device *pdev) 676 682 { 677 683 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); 678 - struct mmc_host *mmc = cb710_slot_to_mmc(slot); 679 684 680 685 cb710_mmc_enable_irq(slot, 0, ~0); 681 - 682 - return mmc_resume_host(mmc); 686 + return 0; 683 687 } 684 688 685 689 #endif /* CONFIG_PM */