Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336310
b: refs/heads/master
c: b0afd8f
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Chris Ball committed Dec 6, 2012
1 parent 6a0d9b4 commit 8d42523
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 063f96c2230052356d8653381912e618a8ae951c
refs/heads/master: b0afd8f68adf6a9b671b0420ab9116a36409ef7f
14 changes: 14 additions & 0 deletions trunk/drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,21 @@ static int sdio_bus_remove(struct device *dev)
}

#ifdef CONFIG_PM

#ifdef CONFIG_PM_SLEEP
static int pm_no_operation(struct device *dev)
{
/*
* Prevent the PM core from calling SDIO device drivers' suspend
* callback routines, which it is not supposed to do, by using this
* empty function as the bus type suspend callaback for SDIO.
*/
return 0;
}
#endif

static const struct dev_pm_ops sdio_bus_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(pm_no_operation, pm_no_operation)
SET_RUNTIME_PM_OPS(
pm_generic_runtime_suspend,
pm_generic_runtime_resume,
Expand Down

0 comments on commit 8d42523

Please sign in to comment.