sdhci-pltfm.c (7e95e365d5399647a41e10059e4b09826b82d78b) sdhci-pltfm.c (29495aa04a30c21565243c5b9c028510446d242c)
1/*
2 * sdhci-pltfm.c Support for SDHCI platform devices
3 * Copyright (c) 2009 Intel Corporation
4 *
5 * Copyright (c) 2007 Freescale Semiconductor, Inc.
6 * Copyright (c) 2009 MontaVista Software, Inc.
7 *
8 * Authors: Xiaobo Xie <X.Xie@freescale.com>

--- 180 unchanged lines hidden (view full) ---

189 sdhci_remove_host(host, dead);
190 sdhci_pltfm_free(pdev);
191
192 return 0;
193}
194EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister);
195
196#ifdef CONFIG_PM
1/*
2 * sdhci-pltfm.c Support for SDHCI platform devices
3 * Copyright (c) 2009 Intel Corporation
4 *
5 * Copyright (c) 2007 Freescale Semiconductor, Inc.
6 * Copyright (c) 2009 MontaVista Software, Inc.
7 *
8 * Authors: Xiaobo Xie <X.Xie@freescale.com>

--- 180 unchanged lines hidden (view full) ---

189 sdhci_remove_host(host, dead);
190 sdhci_pltfm_free(pdev);
191
192 return 0;
193}
194EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister);
195
196#ifdef CONFIG_PM
197int sdhci_pltfm_suspend(struct platform_device *dev, pm_message_t state)
197static int sdhci_pltfm_suspend(struct device *dev)
198{
198{
199 struct sdhci_host *host = platform_get_drvdata(dev);
199 struct sdhci_host *host = dev_get_drvdata(dev);
200
200
201 return sdhci_suspend_host(host, state);
201 return sdhci_suspend_host(host);
202}
202}
203EXPORT_SYMBOL_GPL(sdhci_pltfm_suspend);
204
203
205int sdhci_pltfm_resume(struct platform_device *dev)
204static int sdhci_pltfm_resume(struct device *dev)
206{
205{
207 struct sdhci_host *host = platform_get_drvdata(dev);
206 struct sdhci_host *host = dev_get_drvdata(dev);
208
209 return sdhci_resume_host(host);
210}
207
208 return sdhci_resume_host(host);
209}
211EXPORT_SYMBOL_GPL(sdhci_pltfm_resume);
210
211const struct dev_pm_ops sdhci_pltfm_pmops = {
212 .suspend = sdhci_pltfm_suspend,
213 .resume = sdhci_pltfm_resume,
214};
215EXPORT_SYMBOL_GPL(sdhci_pltfm_pmops);
212#endif /* CONFIG_PM */
213
214static int __init sdhci_pltfm_drv_init(void)
215{
216 pr_info("sdhci-pltfm: SDHCI platform and OF driver helper\n");
217
218 return 0;
219}
220module_init(sdhci_pltfm_drv_init);
221
222static void __exit sdhci_pltfm_drv_exit(void)
223{
224}
225module_exit(sdhci_pltfm_drv_exit);
226
227MODULE_DESCRIPTION("SDHCI platform and OF driver helper");
228MODULE_AUTHOR("Intel Corporation");
229MODULE_LICENSE("GPL v2");
216#endif /* CONFIG_PM */
217
218static int __init sdhci_pltfm_drv_init(void)
219{
220 pr_info("sdhci-pltfm: SDHCI platform and OF driver helper\n");
221
222 return 0;
223}
224module_init(sdhci_pltfm_drv_init);
225
226static void __exit sdhci_pltfm_drv_exit(void)
227{
228}
229module_exit(sdhci_pltfm_drv_exit);
230
231MODULE_DESCRIPTION("SDHCI platform and OF driver helper");
232MODULE_AUTHOR("Intel Corporation");
233MODULE_LICENSE("GPL v2");