|
@@ -1949,39 +1949,10 @@ static struct platform_device_id s3cmci_driver_ids[] = {
|
|
|
|
|
|
MODULE_DEVICE_TABLE(platform, s3cmci_driver_ids);
|
|
|
|
|
|
-
|
|
|
-#ifdef CONFIG_PM
|
|
|
-
|
|
|
-static int s3cmci_suspend(struct device *dev)
|
|
|
-{
|
|
|
- struct mmc_host *mmc = platform_get_drvdata(to_platform_device(dev));
|
|
|
-
|
|
|
- return mmc_suspend_host(mmc);
|
|
|
-}
|
|
|
-
|
|
|
-static int s3cmci_resume(struct device *dev)
|
|
|
-{
|
|
|
- struct mmc_host *mmc = platform_get_drvdata(to_platform_device(dev));
|
|
|
-
|
|
|
- return mmc_resume_host(mmc);
|
|
|
-}
|
|
|
-
|
|
|
-static const struct dev_pm_ops s3cmci_pm = {
|
|
|
- .suspend = s3cmci_suspend,
|
|
|
- .resume = s3cmci_resume,
|
|
|
-};
|
|
|
-
|
|
|
-#define s3cmci_pm_ops &s3cmci_pm
|
|
|
-#else /* CONFIG_PM */
|
|
|
-#define s3cmci_pm_ops NULL
|
|
|
-#endif /* CONFIG_PM */
|
|
|
-
|
|
|
-
|
|
|
static struct platform_driver s3cmci_driver = {
|
|
|
.driver = {
|
|
|
.name = "s3c-sdi",
|
|
|
.owner = THIS_MODULE,
|
|
|
- .pm = s3cmci_pm_ops,
|
|
|
},
|
|
|
.id_table = s3cmci_driver_ids,
|
|
|
.probe = s3cmci_probe,
|