Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255244
b: refs/heads/master
c: ecc0244
h: refs/heads/master
v: v3
  • Loading branch information
Ohad Ben-Cohen authored and Chris Ball committed Jul 21, 2011
1 parent 9ec5356 commit 4b7f842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: b0a68ec9444384269ec06b474c0a841ccd6fcdf9
refs/heads/master: ecc024419a13da1e589aebc422d9d1e3c0124ba4
8 changes: 2 additions & 6 deletions trunk/drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,8 @@ static int sdio_bus_remove(struct device *dev)
int ret = 0;

/* Make sure card is powered before invoking ->remove() */
if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) {
ret = pm_runtime_get_sync(dev);
if (ret < 0)
goto out;
}
if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD)
pm_runtime_get_sync(dev);

drv->remove(func);

Expand All @@ -191,7 +188,6 @@ static int sdio_bus_remove(struct device *dev)
if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD)
pm_runtime_put_sync(dev);

out:
return ret;
}

Expand Down

0 comments on commit 4b7f842

Please sign in to comment.