diff options
Diffstat (limited to 'drivers/mmc/host/sdhci-s3c.c')
| -rw-r--r-- | drivers/mmc/host/sdhci-s3c.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index cb60c4197e0..0d33ff0d67f 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c | |||
| @@ -622,23 +622,29 @@ static int __devexit sdhci_s3c_remove(struct platform_device *pdev) | |||
| 622 | 622 | ||
| 623 | #ifdef CONFIG_PM | 623 | #ifdef CONFIG_PM |
| 624 | 624 | ||
| 625 | static int sdhci_s3c_suspend(struct platform_device *dev, pm_message_t pm) | 625 | static int sdhci_s3c_suspend(struct device *dev) |
| 626 | { | 626 | { |
| 627 | struct sdhci_host *host = platform_get_drvdata(dev); | 627 | struct sdhci_host *host = dev_get_drvdata(dev); |
| 628 | 628 | ||
| 629 | return sdhci_suspend_host(host, pm); | 629 | return sdhci_suspend_host(host); |
| 630 | } | 630 | } |
| 631 | 631 | ||
| 632 | static int sdhci_s3c_resume(struct platform_device *dev) | 632 | static int sdhci_s3c_resume(struct device *dev) |
| 633 | { | 633 | { |
| 634 | struct sdhci_host *host = platform_get_drvdata(dev); | 634 | struct sdhci_host *host = dev_get_drvdata(dev); |
| 635 | 635 | ||
| 636 | return sdhci_resume_host(host); | 636 | return sdhci_resume_host(host); |
| 637 | } | 637 | } |
| 638 | 638 | ||
| 639 | static const struct dev_pm_ops sdhci_s3c_pmops = { | ||
| 640 | .suspend = sdhci_s3c_suspend, | ||
| 641 | .resume = sdhci_s3c_resume, | ||
| 642 | }; | ||
| 643 | |||
| 644 | #define SDHCI_S3C_PMOPS (&sdhci_s3c_pmops) | ||
| 645 | |||
| 639 | #else | 646 | #else |
| 640 | #define sdhci_s3c_suspend NULL | 647 | #define SDHCI_S3C_PMOPS NULL |
| 641 | #define sdhci_s3c_resume NULL | ||
| 642 | #endif | 648 | #endif |
| 643 | 649 | ||
| 644 | static struct platform_driver sdhci_s3c_driver = { | 650 | static struct platform_driver sdhci_s3c_driver = { |
| @@ -647,6 +653,7 @@ static struct platform_driver sdhci_s3c_driver = { | |||
| 647 | .driver = { | 653 | .driver = { |
| 648 | .owner = THIS_MODULE, | 654 | .owner = THIS_MODULE, |
| 649 | .name = "s3c-sdhci", | 655 | .name = "s3c-sdhci", |
| 656 | .pm = SDHCI_S3C_PMOPS, | ||
| 650 | }, | 657 | }, |
| 651 | }; | 658 | }; |
| 652 | 659 | ||
