Commit c78402e9 authored by Ben Dooks's avatar Ben Dooks Committed by Linus Torvalds

s3cmci: convert missed s3c2410_gpio calls to gpiolib calls

Convert two missed s3c2410 specific gpio calls to gpiolib calls.
Signed-off-by: default avatarBen Dooks <ben@simtec.co.uk>
Signed-off-by: default avatarSimtec Linux Team <linux@simtec.co.uk>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a7a6186c
...@@ -1303,10 +1303,8 @@ static int s3cmci_get_ro(struct mmc_host *mmc) ...@@ -1303,10 +1303,8 @@ static int s3cmci_get_ro(struct mmc_host *mmc)
if (pdata->no_wprotect) if (pdata->no_wprotect)
return 0; return 0;
ret = s3c2410_gpio_getpin(pdata->gpio_wprotect); ret = gpio_get_value(pdata->gpio_wprotect) ? 1 : 0;
ret ^= pdata->wprotect_invert;
if (pdata->wprotect_invert)
ret = !ret;
return ret; return ret;
} }
...@@ -1655,7 +1653,7 @@ static int __devinit s3cmci_probe(struct platform_device *pdev) ...@@ -1655,7 +1653,7 @@ static int __devinit s3cmci_probe(struct platform_device *pdev)
goto probe_free_irq; 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 (host->irq_cd >= 0) {
if (request_irq(host->irq_cd, s3cmci_irq_cd, if (request_irq(host->irq_cd, s3cmci_irq_cd,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment