File tree Expand file tree Collapse file tree 3 files changed +7
-21
lines changed
Expand file tree Collapse file tree 3 files changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -391,24 +391,6 @@ static int sdhci_cdns_probe(struct platform_device *pdev)
391391}
392392
393393#ifdef CONFIG_PM_SLEEP
394- static int sdhci_cdns_suspend (struct device * dev )
395- {
396- struct sdhci_host * host = dev_get_drvdata (dev );
397- struct sdhci_pltfm_host * pltfm_host = sdhci_priv (host );
398- int ret ;
399-
400- if (host -> tuning_mode != SDHCI_TUNING_MODE_3 )
401- mmc_retune_needed (host -> mmc );
402-
403- ret = sdhci_suspend_host (host );
404- if (ret )
405- return ret ;
406-
407- clk_disable_unprepare (pltfm_host -> clk );
408-
409- return 0 ;
410- }
411-
412394static int sdhci_cdns_resume (struct device * dev )
413395{
414396 struct sdhci_host * host = dev_get_drvdata (dev );
@@ -438,7 +420,7 @@ static int sdhci_cdns_resume(struct device *dev)
438420#endif
439421
440422static const struct dev_pm_ops sdhci_cdns_pm_ops = {
441- SET_SYSTEM_SLEEP_PM_OPS (sdhci_cdns_suspend , sdhci_cdns_resume )
423+ SET_SYSTEM_SLEEP_PM_OPS (sdhci_pltfm_suspend , sdhci_cdns_resume )
442424};
443425
444426static const struct of_device_id sdhci_cdns_match [] = {
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ int sdhci_pltfm_unregister(struct platform_device *pdev)
209209EXPORT_SYMBOL_GPL (sdhci_pltfm_unregister );
210210
211211#ifdef CONFIG_PM_SLEEP
212- static int sdhci_pltfm_suspend (struct device * dev )
212+ int sdhci_pltfm_suspend (struct device * dev )
213213{
214214 struct sdhci_host * host = dev_get_drvdata (dev );
215215 struct sdhci_pltfm_host * pltfm_host = sdhci_priv (host );
@@ -226,8 +226,9 @@ static int sdhci_pltfm_suspend(struct device *dev)
226226
227227 return 0 ;
228228}
229+ EXPORT_SYMBOL_GPL (sdhci_pltfm_suspend );
229230
230- static int sdhci_pltfm_resume (struct device * dev )
231+ int sdhci_pltfm_resume (struct device * dev )
231232{
232233 struct sdhci_host * host = dev_get_drvdata (dev );
233234 struct sdhci_pltfm_host * pltfm_host = sdhci_priv (host );
@@ -243,6 +244,7 @@ static int sdhci_pltfm_resume(struct device *dev)
243244
244245 return ret ;
245246}
247+ EXPORT_SYMBOL_GPL (sdhci_pltfm_resume );
246248#endif
247249
248250const struct dev_pm_ops sdhci_pltfm_pmops = {
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host)
109109 return host -> private ;
110110}
111111
112+ int sdhci_pltfm_suspend (struct device * dev );
113+ int sdhci_pltfm_resume (struct device * dev );
112114extern const struct dev_pm_ops sdhci_pltfm_pmops ;
113115
114116#endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */
You can’t perform that action at this time.
0 commit comments