aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-12-14 21:01:27 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 11:53:35 -0500
commitc78402e95dd8238ee2b0e6e62b9a0c8b2bb9bba9 (patch)
tree7ba03c72c7f09aaaf747a37ea93ac3a562b3eb47 /drivers
parenta7a6186c4b96d4ce5c1d13d91b7f862b0adc0e72 (diff)
s3cmci: convert missed s3c2410_gpio calls to gpiolib calls
Convert two missed s3c2410 specific gpio calls to gpiolib calls. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Simtec Linux Team <linux@simtec.co.uk> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-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,