mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-22 04:15:02 +00:00
mmc: sdhci: remove "state" argument from sdhci_suspend_host
Drop the "state" argument from sdhci_suspend_host. Its only user is the PCI glue; this allows to move all SDHCI glues to use dev_pm_ops instead. Change-Id: I5064fad454d0c461e4a65bee14763c7ace4c27ac Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Chris Ball <cjb@laptop.org> [venkatg@codeaurora.org: Move suspend/resume functions into pm ops] Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
This commit is contained in:
parent
4944a73f53
commit
6461b6a47e
1 changed files with 8 additions and 0 deletions
|
@ -751,6 +751,7 @@ static int sdhci_s3c_remove(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
|
||||
static int sdhci_s3c_suspend(struct device *dev)
|
||||
{
|
||||
struct sdhci_host *host = dev_get_drvdata(dev);
|
||||
|
@ -804,6 +805,13 @@ static const struct dev_pm_ops sdhci_s3c_pmops = {
|
|||
|
||||
#define SDHCI_S3C_PMOPS (&sdhci_s3c_pmops)
|
||||
|
||||
static const struct dev_pm_ops sdhci_s3c_pmops = {
|
||||
.suspend = sdhci_s3c_suspend,
|
||||
.resume = sdhci_s3c_resume,
|
||||
};
|
||||
|
||||
#define SDHCI_S3C_PMOPS (&sdhci_s3c_pmops)
|
||||
|
||||
#else
|
||||
#define SDHCI_S3C_PMOPS NULL
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue