Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166655
b: refs/heads/master
c: 50d7fa9
h: refs/heads/master
i:
  166653: 21ef67b
  166651: 3f7ea5d
  166647: 53885ae
  166639: b9bcf48
  166623: 99ac42f
  166591: d1d6d78
  166527: d5595d4
  166399: 6aa0b1a
v: v3
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed Oct 1, 2009
1 parent 3816f76 commit 2adcf33
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 916a30775fc843e6f82e09c748a4fc70bfd4298e
refs/heads/master: 50d7fa9aa4183be2575bba24dd1a7651a3923fba
29 changes: 18 additions & 11 deletions trunk/drivers/mmc/host/s3cmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1546,35 +1546,42 @@ MODULE_DEVICE_TABLE(platform, s3cmci_driver_ids);

#ifdef CONFIG_PM

static int s3cmci_suspend(struct platform_device *dev, pm_message_t state)
static int s3cmci_suspend(struct device *dev)
{
struct mmc_host *mmc = platform_get_drvdata(dev);
struct mmc_host *mmc = platform_get_drvdata(to_platform_device(dev));
struct pm_message event = { PM_EVENT_SUSPEND };

return mmc_suspend_host(mmc, state);
return mmc_suspend_host(mmc, event);
}

static int s3cmci_resume(struct platform_device *dev)
static int s3cmci_resume(struct device *dev)
{
struct mmc_host *mmc = platform_get_drvdata(dev);
struct mmc_host *mmc = platform_get_drvdata(to_platform_device(dev));

return mmc_resume_host(mmc);
}

static struct dev_pm_ops s3cmci_pm = {
.suspend = s3cmci_suspend,
.resume = s3cmci_resume,
};

#define s3cmci_pm_ops &s3cmci_pm
#else /* CONFIG_PM */
#define s3cmci_suspend NULL
#define s3cmci_resume NULL
#define s3cmci_pm_ops NULL
#endif /* CONFIG_PM */


static struct platform_driver s3cmci_driver = {
.driver.name = "s3c-sdi",
.driver.owner = THIS_MODULE,
.driver = {
.name = "s3c-sdi",
.owner = THIS_MODULE,
.pm = s3cmci_pm_ops,
},
.id_table = s3cmci_driver_ids,
.probe = s3cmci_probe,
.remove = __devexit_p(s3cmci_remove),
.shutdown = s3cmci_shutdown,
.suspend = s3cmci_suspend,
.resume = s3cmci_resume,
};

static int __init s3cmci_init(void)
Expand Down

0 comments on commit 2adcf33

Please sign in to comment.