Skip to contentSkip to conversation

s3cmci: s3cmci_card_present: Use no_detect to decide whether there is a card detect pin

PATCH New [email protected] 1 participant 1 message Mar 5, 2010 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 107/160 s3cmci: s3cmci_card_present: Use no_detect to decide whether there is a card detect pin

From: Lars-Peter Clausen <[email protected]>

---

 drivers/mmc/host/s3cmci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/s3cmci.c renamed from drivers/mmc/host/s3cmci.c~s3cmci-s3cmci_card_present-use-no_detect-to-decide-whether-there-is-a-card-detect-pin +1 -1
diff -puN drivers/mmc/host/s3cmci.c~s3cmci-s3cmci_card_present-use-no_detect-to-decide-whether-there-is-a-card-detect-pin drivers/mmc/host/s3cmci.c
@@ -1179,7 +1179,7 @@ static int s3cmci_card_present(struct mm
 	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;

_