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

mmc: pxamci: Remove redundant suspend and resume callbacks

Suspend and resume of cards are handled by the protocol layer and
consequently the mmc_suspend|resume_host APIs are marked as deprecated.

While moving away from using the deprecated APIs, there are nothing
left to be done for the suspend and resume callbacks, so remove them.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Ulf Hansson and committed by
Chris Ball
359bfcb4 bfc55a8e

-32
-32
drivers/mmc/host/pxamci.c
··· 880 880 return 0; 881 881 } 882 882 883 - #ifdef CONFIG_PM 884 - static int pxamci_suspend(struct device *dev) 885 - { 886 - struct mmc_host *mmc = dev_get_drvdata(dev); 887 - int ret = 0; 888 - 889 - if (mmc) 890 - ret = mmc_suspend_host(mmc); 891 - 892 - return ret; 893 - } 894 - 895 - static int pxamci_resume(struct device *dev) 896 - { 897 - struct mmc_host *mmc = dev_get_drvdata(dev); 898 - int ret = 0; 899 - 900 - if (mmc) 901 - ret = mmc_resume_host(mmc); 902 - 903 - return ret; 904 - } 905 - 906 - static const struct dev_pm_ops pxamci_pm_ops = { 907 - .suspend = pxamci_suspend, 908 - .resume = pxamci_resume, 909 - }; 910 - #endif 911 - 912 883 static struct platform_driver pxamci_driver = { 913 884 .probe = pxamci_probe, 914 885 .remove = pxamci_remove, ··· 887 916 .name = DRIVER_NAME, 888 917 .owner = THIS_MODULE, 889 918 .of_match_table = of_match_ptr(pxa_mmc_dt_ids), 890 - #ifdef CONFIG_PM 891 - .pm = &pxamci_pm_ops, 892 - #endif 893 919 }, 894 920 }; 895 921