From: Lars-Peter Clausen Date: Fri, 5 Mar 2010 21:43:37 +0000 (-0800) Subject: s3cmci: s3cmci_card_present: Use no_detect to decide whether there is a card detect pin X-Git-Tag: v2.6.32.10~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=31ec453d5d81138cf50ad1c9ac523e9aec3c3896;p=karo-tx-linux.git s3cmci: s3cmci_card_present: Use no_detect to decide whether there is a card detect pin commit dc2ed552804f3a2ae41c0ffe4bc09879ec8f7396 upstream. Signed-off-by: Lars-Peter Clausen Cc: Ben Dooks Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index 99b74a351020..f31f05a60f37 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c @@ -1178,7 +1178,7 @@ static int s3cmci_card_present(struct mmc_host *mmc) struct s3c24xx_mci_pdata *pdata = host->pdata; int ret; - if (pdata->gpio_detect == 0) + if (pdata->no_detect) return -ENOSYS; ret = gpio_get_value(pdata->gpio_detect) ? 0 : 1;