Skip to content

Commit

Permalink
s3cmci: s3cmci_card_present: Use no_detect to decide whether there is…
Browse files Browse the repository at this point in the history
… a card detect pin

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]>
  • Loading branch information
larsclausen authored and torvalds committed Mar 6, 2010
1 parent c212808 commit dc2ed55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/s3cmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc2ed55

Please sign in to comment.