Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53577
b: refs/heads/master
c: b5af25b
h: refs/heads/master
i:
  53575: f519e25
v: v3
  • Loading branch information
Pierre Ossman committed May 1, 2007
1 parent f624187 commit e8e9b35
Show file tree
Hide file tree
Showing 2 changed files with 11 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: d2b46f66b4b342be07a4194bd5e82384d07e470d
refs/heads/master: b5af25bee2de2f6cd1ac74ba737cbc4f3d303e5d
13 changes: 10 additions & 3 deletions trunk/drivers/mmc/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1738,10 +1738,17 @@ EXPORT_SYMBOL(mmc_free_host);
*/
int mmc_suspend_host(struct mmc_host *host, pm_message_t state)
{
mmc_claim_host(host);
mmc_deselect_cards(host);
struct list_head *l, *n;

mmc_flush_scheduled_work();

list_for_each_safe(l, n, &host->cards) {
struct mmc_card *card = mmc_list_to_card(l);

mmc_remove_card(card);
}

mmc_power_off(host);
mmc_release_host(host);

return 0;
}
Expand Down

0 comments on commit e8e9b35

Please sign in to comment.