Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176396
b: refs/heads/master
c: c78402e
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed Dec 15, 2009
1 parent e49afe4 commit 9740522
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: a7a6186c4b96d4ce5c1d13d91b7f862b0adc0e72
refs/heads/master: c78402e95dd8238ee2b0e6e62b9a0c8b2bb9bba9
8 changes: 3 additions & 5 deletions trunk/drivers/mmc/host/s3cmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1303,10 +1303,8 @@ static int s3cmci_get_ro(struct mmc_host *mmc)
if (pdata->no_wprotect)
return 0;

ret = s3c2410_gpio_getpin(pdata->gpio_wprotect);

if (pdata->wprotect_invert)
ret = !ret;
ret = gpio_get_value(pdata->gpio_wprotect) ? 1 : 0;
ret ^= pdata->wprotect_invert;

return ret;
}
Expand Down Expand Up @@ -1655,7 +1653,7 @@ static int __devinit s3cmci_probe(struct platform_device *pdev)
goto probe_free_irq;
}

host->irq_cd = s3c2410_gpio_getirq(host->pdata->gpio_detect);
host->irq_cd = gpio_to_irq(host->pdata->gpio_detect);

if (host->irq_cd >= 0) {
if (request_irq(host->irq_cd, s3cmci_irq_cd,
Expand Down

0 comments on commit 9740522

Please sign in to comment.