Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144560
b: refs/heads/master
c: 2e058a6
h: refs/heads/master
v: v3
  • Loading branch information
Rabin Vincent authored and Pierre Ossman committed May 3, 2009
1 parent 62aefb9 commit 131f79a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 4ea580f1db62c5419e6690878fd61a740f3aae8e
refs/heads/master: 2e058a6fb004a6b6c3eb6a219ae408f83b670598
11 changes: 5 additions & 6 deletions trunk/drivers/mmc/host/mvsdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,24 +825,23 @@ static int __exit mvsd_remove(struct platform_device *pdev)
}

#ifdef CONFIG_PM
static int mvsd_suspend(struct platform_device *dev, pm_message_t state,
u32 level)
static int mvsd_suspend(struct platform_device *dev, pm_message_t state)
{
struct mmc_host *mmc = platform_get_drvdata(dev);
int ret = 0;

if (mmc && level == SUSPEND_DISABLE)
if (mmc)
ret = mmc_suspend_host(mmc, state);

return ret;
}

static int mvsd_resume(struct platform_device *dev, u32 level)
static int mvsd_resume(struct platform_device *dev)
{
struct mmc_host *mmc = platform_dev_get_drvdata(dev);
struct mmc_host *mmc = platform_get_drvdata(dev);
int ret = 0;

if (mmc && level == RESUME_ENABLE)
if (mmc)
ret = mmc_resume_host(mmc);

return ret;
Expand Down

0 comments on commit 131f79a

Please sign in to comment.