sdhci-pxav3.c (cf40a76e7d5874bb25f4404eecc58a2e033af885) | sdhci-pxav3.c (fb8617e1ee4d4057c76730e2f8376ece45663c34) |
---|---|
1/* 2 * Copyright (C) 2010 Marvell International Ltd. 3 * Zhangfei Gao <zhangfei.gao@marvell.com> 4 * Kevin Wang <dwang4@marvell.com> 5 * Mingwei Wang <mwwang@marvell.com> 6 * Philip Rakity <prakity@marvell.com> 7 * Mark Brown <markb@marvell.com> 8 * --- 458 unchanged lines hidden (view full) --- 467 pm_runtime_get_noresume(&pdev->dev); 468 pm_runtime_set_active(&pdev->dev); 469 pm_runtime_set_autosuspend_delay(&pdev->dev, PXAV3_RPM_DELAY_MS); 470 pm_runtime_use_autosuspend(&pdev->dev); 471 pm_runtime_enable(&pdev->dev); 472 pm_suspend_ignore_children(&pdev->dev, 1); 473 474 ret = sdhci_add_host(host); | 1/* 2 * Copyright (C) 2010 Marvell International Ltd. 3 * Zhangfei Gao <zhangfei.gao@marvell.com> 4 * Kevin Wang <dwang4@marvell.com> 5 * Mingwei Wang <mwwang@marvell.com> 6 * Philip Rakity <prakity@marvell.com> 7 * Mark Brown <markb@marvell.com> 8 * --- 458 unchanged lines hidden (view full) --- 467 pm_runtime_get_noresume(&pdev->dev); 468 pm_runtime_set_active(&pdev->dev); 469 pm_runtime_set_autosuspend_delay(&pdev->dev, PXAV3_RPM_DELAY_MS); 470 pm_runtime_use_autosuspend(&pdev->dev); 471 pm_runtime_enable(&pdev->dev); 472 pm_suspend_ignore_children(&pdev->dev, 1); 473 474 ret = sdhci_add_host(host); |
475 if (ret) { 476 dev_err(&pdev->dev, "failed to add host\n"); | 475 if (ret) |
477 goto err_add_host; | 476 goto err_add_host; |
478 } | |
479 480 if (host->mmc->pm_caps & MMC_PM_WAKE_SDIO_IRQ) 481 device_init_wakeup(&pdev->dev, 1); 482 483 pm_runtime_put_autosuspend(&pdev->dev); 484 485 return 0; 486 --- 121 unchanged lines hidden --- | 477 478 if (host->mmc->pm_caps & MMC_PM_WAKE_SDIO_IRQ) 479 device_init_wakeup(&pdev->dev, 1); 480 481 pm_runtime_put_autosuspend(&pdev->dev); 482 483 return 0; 484 --- 121 unchanged lines hidden --- |