aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/s3cmci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/s3cmci.c')
-rw-r--r--drivers/mmc/host/s3cmci.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
index b4db401874e0..d96e1abf2d64 100644
--- a/drivers/mmc/host/s3cmci.c
+++ b/drivers/mmc/host/s3cmci.c
@@ -1303,10 +1303,8 @@ static int s3cmci_get_ro(struct mmc_host *mmc)
1303 if (pdata->no_wprotect) 1303 if (pdata->no_wprotect)
1304 return 0; 1304 return 0;
1305 1305
1306 ret = s3c2410_gpio_getpin(pdata->gpio_wprotect); 1306 ret = gpio_get_value(pdata->gpio_wprotect) ? 1 : 0;
1307 1307 ret ^= pdata->wprotect_invert;
1308 if (pdata->wprotect_invert)
1309 ret = !ret;
1310 1308
1311 return ret; 1309 return ret;
1312} 1310}
@@ -1655,7 +1653,7 @@ static int __devinit s3cmci_probe(struct platform_device *pdev)
1655 goto probe_free_irq; 1653 goto probe_free_irq;
1656 } 1654 }
1657 1655
1658 host->irq_cd = s3c2410_gpio_getirq(host->pdata->gpio_detect); 1656 host->irq_cd = gpio_to_irq(host->pdata->gpio_detect);
1659 1657
1660 if (host->irq_cd >= 0) { 1658 if (host->irq_cd >= 0) {
1661 if (request_irq(host->irq_cd, s3cmci_irq_cd, 1659 if (request_irq(host->irq_cd, s3cmci_irq_cd,