|
@@ -448,13 +448,11 @@ static int sdhci_pxav3_runtime_suspend(struct device *dev)
|
|
|
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
|
|
|
unsigned long flags;
|
|
|
|
|
|
- if (pltfm_host->clk) {
|
|
|
- spin_lock_irqsave(&host->lock, flags);
|
|
|
- host->runtime_suspended = true;
|
|
|
- spin_unlock_irqrestore(&host->lock, flags);
|
|
|
+ spin_lock_irqsave(&host->lock, flags);
|
|
|
+ host->runtime_suspended = true;
|
|
|
+ spin_unlock_irqrestore(&host->lock, flags);
|
|
|
|
|
|
- clk_disable_unprepare(pltfm_host->clk);
|
|
|
- }
|
|
|
+ clk_disable_unprepare(pltfm_host->clk);
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
@@ -465,13 +463,11 @@ static int sdhci_pxav3_runtime_resume(struct device *dev)
|
|
|
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
|
|
|
unsigned long flags;
|
|
|
|
|
|
- if (pltfm_host->clk) {
|
|
|
- clk_prepare_enable(pltfm_host->clk);
|
|
|
+ clk_prepare_enable(pltfm_host->clk);
|
|
|
|
|
|
- spin_lock_irqsave(&host->lock, flags);
|
|
|
- host->runtime_suspended = false;
|
|
|
- spin_unlock_irqrestore(&host->lock, flags);
|
|
|
- }
|
|
|
+ spin_lock_irqsave(&host->lock, flags);
|
|
|
+ host->runtime_suspended = false;
|
|
|
+ spin_unlock_irqrestore(&host->lock, flags);
|
|
|
|
|
|
return 0;
|
|
|
}
|