Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372799
b: refs/heads/master
c: 3bffb80
h: refs/heads/master
i:
  372797: d39084e
  372795: 6f7d79f
  372791: ec051c3
  372783: 087e5e5
  372767: fb87801
  372735: 7fc7431
v: v3
  • Loading branch information
Li Fei authored and Chris Ball committed Apr 12, 2013
1 parent cc144e0 commit e851019
Show file tree
Hide file tree
Showing 3 changed files with 5 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: abd4190f0c820b7f118450b52bb95c0be3a441bd
refs/heads/master: 3bffb800b91bb128b61d83deb01ce63c455d108f
4 changes: 3 additions & 1 deletion trunk/drivers/mmc/core/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,10 @@ static void mmc_sdio_detect(struct mmc_host *host)
/* Make sure card is powered before detecting it */
if (host->caps & MMC_CAP_POWER_OFF_CARD) {
err = pm_runtime_get_sync(&host->card->dev);
if (err < 0)
if (err < 0) {
pm_runtime_put_noidle(&host->card->dev);
goto out;
}
}

mmc_claim_host(host);
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static int sdio_bus_probe(struct device *dev)
if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) {
ret = pm_runtime_get_sync(dev);
if (ret < 0)
goto out;
goto disable_runtimepm;
}

/* Set the default block size so the driver is sure it's something
Expand All @@ -158,7 +158,6 @@ static int sdio_bus_probe(struct device *dev)
disable_runtimepm:
if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD)
pm_runtime_put_noidle(dev);
out:
return ret;
}

Expand Down

0 comments on commit e851019

Please sign in to comment.