s3cmci: s3cmci_card_present: Use no_detect to decide whether there is a card detect pin
authorLars-Peter Clausen <[email protected]>
Fri, 5 Mar 2010 21:43:37 +0000 (13:43 -0800)
committerLinus Torvalds <[email protected]>
Sat, 6 Mar 2010 19:26:37 +0000 (11:26 -0800)
Signed-off-by: Lars-Peter Clausen <[email protected]>
Cc: Ben Dooks <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/mmc/host/s3cmci.c

index b9c96cc87b04a637d9e61fe44348c2f5b1228f70..2fdf7689ae6c3a2bdb2c876f0299b2c7e9009edf 100644 (file)
@@ -1179,7 +1179,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;