Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212427
b: refs/heads/master
c: 18a0630
h: refs/heads/master
i:
  212425: 7b44420
  212423: 12d0e67
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Sep 23, 2010
1 parent 3d6e4f6 commit f4e4473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 4b8caec09562ce7e6e3aaf2954eef8ea73ba67b8
refs/heads/master: 18a06301158b5e4e9fae29e477f468e23f3eda90
5 changes: 3 additions & 2 deletions trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ static int mmci_get_ro(struct mmc_host *mmc)
if (host->gpio_wp == -ENOSYS)
return -ENOSYS;

return gpio_get_value(host->gpio_wp);
return gpio_get_value_cansleep(host->gpio_wp);
}

static int mmci_get_cd(struct mmc_host *mmc)
Expand All @@ -595,7 +595,8 @@ static int mmci_get_cd(struct mmc_host *mmc)

status = plat->status(mmc_dev(host->mmc));
} else
status = !!gpio_get_value(host->gpio_cd) ^ plat->cd_invert;
status = !!gpio_get_value_cansleep(host->gpio_cd)
^ plat->cd_invert;

/*
* Use positive logic throughout - status is zero for no card,
Expand Down

0 comments on commit f4e4473

Please sign in to comment.