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

mmc: rtsx: 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.

Cc: Wei WANG <wei_wang@realsil.com.cn>
Cc: Samuel Ortiz <sameo@linux.intel.com>
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
ff71c4bc 83234ac8

-33
-33
drivers/mmc/host/rtsx_pci_sdmmc.c
··· 1197 1197 .execute_tuning = sdmmc_execute_tuning, 1198 1198 }; 1199 1199 1200 - #ifdef CONFIG_PM 1201 - static int rtsx_pci_sdmmc_suspend(struct platform_device *pdev, 1202 - pm_message_t state) 1203 - { 1204 - struct realtek_pci_sdmmc *host = platform_get_drvdata(pdev); 1205 - struct mmc_host *mmc = host->mmc; 1206 - int err; 1207 - 1208 - dev_dbg(sdmmc_dev(host), "--> %s\n", __func__); 1209 - 1210 - err = mmc_suspend_host(mmc); 1211 - if (err) 1212 - return err; 1213 - 1214 - return 0; 1215 - } 1216 - 1217 - static int rtsx_pci_sdmmc_resume(struct platform_device *pdev) 1218 - { 1219 - struct realtek_pci_sdmmc *host = platform_get_drvdata(pdev); 1220 - struct mmc_host *mmc = host->mmc; 1221 - 1222 - dev_dbg(sdmmc_dev(host), "--> %s\n", __func__); 1223 - 1224 - return mmc_resume_host(mmc); 1225 - } 1226 - #else /* CONFIG_PM */ 1227 - #define rtsx_pci_sdmmc_suspend NULL 1228 - #define rtsx_pci_sdmmc_resume NULL 1229 - #endif /* CONFIG_PM */ 1230 - 1231 1200 static void init_extra_caps(struct realtek_pci_sdmmc *host) 1232 1201 { 1233 1202 struct mmc_host *mmc = host->mmc; ··· 1336 1367 .probe = rtsx_pci_sdmmc_drv_probe, 1337 1368 .remove = rtsx_pci_sdmmc_drv_remove, 1338 1369 .id_table = rtsx_pci_sdmmc_ids, 1339 - .suspend = rtsx_pci_sdmmc_suspend, 1340 - .resume = rtsx_pci_sdmmc_resume, 1341 1370 .driver = { 1342 1371 .owner = THIS_MODULE, 1343 1372 .name = DRV_NAME_RTSX_PCI_SDMMC,