Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298805
b: refs/heads/master
c: e841a7c
h: refs/heads/master
i:
  298803: 3968290
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Chris Ball committed Apr 6, 2012
1 parent 427cccb commit 990af6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 6500c8ed957ac7b1ff37045ba6a2ad39ab2a8dbc
refs/heads/master: e841a7c69b708eeaf784fd517978006e8319b03a
12 changes: 9 additions & 3 deletions trunk/drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,15 @@ static int sdio_bus_remove(struct device *dev)
return ret;
}

#ifdef CONFIG_PM_RUNTIME
#ifdef CONFIG_PM

static int pm_no_operation(struct device *dev)
{
return 0;
}

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 All @@ -204,11 +210,11 @@ static const struct dev_pm_ops sdio_bus_pm_ops = {

#define SDIO_PM_OPS_PTR (&sdio_bus_pm_ops)

#else /* !CONFIG_PM_RUNTIME */
#else /* !CONFIG_PM */

#define SDIO_PM_OPS_PTR NULL

#endif /* !CONFIG_PM_RUNTIME */
#endif /* !CONFIG_PM */

static struct bus_type sdio_bus_type = {
.name = "sdio",
Expand Down

0 comments on commit 990af6e

Please sign in to comment.