Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298794
b: refs/heads/master
c: d5e9c02
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Chris Ball committed Apr 6, 2012
1 parent f3ecae1 commit 3b99768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 9bda6da7ff7d35ef757e235aae559e679d3a9493
refs/heads/master: d5e9c02cab60920d5ac16a8244bb6085dc27564f
11 changes: 7 additions & 4 deletions trunk/drivers/mmc/host/sdhci-s3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
#include <linux/pm.h>

#include <linux/mmc/host.h>

Expand Down Expand Up @@ -658,8 +661,7 @@ static int __devexit sdhci_s3c_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM

#ifdef CONFIG_PM_SLEEP
static int sdhci_s3c_suspend(struct device *dev)
{
struct sdhci_host *host = dev_get_drvdata(dev);
Expand All @@ -673,10 +675,11 @@ static int sdhci_s3c_resume(struct device *dev)

return sdhci_resume_host(host);
}
#endif

#ifdef CONFIG_PM
static const struct dev_pm_ops sdhci_s3c_pmops = {
.suspend = sdhci_s3c_suspend,
.resume = sdhci_s3c_resume,
SET_SYSTEM_SLEEP_PM_OPS(sdhci_s3c_suspend, sdhci_s3c_resume)
};

#define SDHCI_S3C_PMOPS (&sdhci_s3c_pmops)
Expand Down

0 comments on commit 3b99768

Please sign in to comment.