Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219009
b: refs/heads/master
c: 8196856
h: refs/heads/master
i:
  219007: 2d1ec67
v: v3
  • Loading branch information
Ohad Ben-Cohen authored and Chris Ball committed Oct 23, 2010
1 parent 21cc84f commit 9aca56a
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 80fd933c44557c5261b80f8f8145b4fe071aeaf3
refs/heads/master: 81968561bd69536c82be7ee654b04c68cd3e1746
13 changes: 13 additions & 0 deletions trunk/drivers/mmc/core/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

#include <linux/err.h>
#include <linux/pm_runtime.h>

#include <linux/mmc/host.h>
#include <linux/mmc/card.h>
Expand Down Expand Up @@ -707,6 +708,18 @@ int mmc_attach_sdio(struct mmc_host *host, u32 ocr)
goto err;
card = host->card;

/*
* Let runtime PM core know our card is active
*/
err = pm_runtime_set_active(&card->dev);
if (err)
goto remove;

/*
* Enable runtime PM for this card
*/
pm_runtime_enable(&card->dev);

/*
* The number of functions on the card is encoded inside
* the ocr.
Expand Down

0 comments on commit 9aca56a

Please sign in to comment.