|
@@ -457,12 +457,8 @@ static int sdhci_pxav3_probe(struct platform_device *pdev)
|
|
|
|
|
|
platform_set_drvdata(pdev, host);
|
|
platform_set_drvdata(pdev, host);
|
|
|
|
|
|
- if (host->mmc->pm_caps & MMC_PM_KEEP_POWER) {
|
|
|
|
|
|
+ if (host->mmc->pm_caps & MMC_PM_WAKE_SDIO_IRQ)
|
|
device_init_wakeup(&pdev->dev, 1);
|
|
device_init_wakeup(&pdev->dev, 1);
|
|
- host->mmc->pm_flags |= MMC_PM_WAKE_SDIO_IRQ;
|
|
|
|
- } else {
|
|
|
|
- device_init_wakeup(&pdev->dev, 0);
|
|
|
|
- }
|
|
|
|
|
|
|
|
pm_runtime_put_autosuspend(&pdev->dev);
|
|
pm_runtime_put_autosuspend(&pdev->dev);
|
|
|
|
|