sdhci-pxav3.c (aeb8f932080d62cdc305a7ccca9d60de34908b30) | sdhci-pxav3.c (162d6f98005fce408efc5af73956c434ae08ef73) |
---|---|
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 * --- 422 unchanged lines hidden (view full) --- 431 ret = sdhci_resume_host(host); 432 pm_runtime_mark_last_busy(dev); 433 pm_runtime_put_autosuspend(dev); 434 435 return ret; 436} 437#endif 438 | 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 * --- 422 unchanged lines hidden (view full) --- 431 ret = sdhci_resume_host(host); 432 pm_runtime_mark_last_busy(dev); 433 pm_runtime_put_autosuspend(dev); 434 435 return ret; 436} 437#endif 438 |
439#ifdef CONFIG_PM_RUNTIME | 439#ifdef CONFIG_PM |
440static int sdhci_pxav3_runtime_suspend(struct device *dev) 441{ 442 struct sdhci_host *host = dev_get_drvdata(dev); 443 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 444 unsigned long flags; 445 446 if (pltfm_host->clk) { 447 spin_lock_irqsave(&host->lock, flags); --- 58 unchanged lines hidden --- | 440static int sdhci_pxav3_runtime_suspend(struct device *dev) 441{ 442 struct sdhci_host *host = dev_get_drvdata(dev); 443 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 444 unsigned long flags; 445 446 if (pltfm_host->clk) { 447 spin_lock_irqsave(&host->lock, flags); --- 58 unchanged lines hidden --- |