mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
s3cmci: s3cmci_card_present: Use no_detect to decide whether there is a card detect pin
commit dc2ed55280 upstream.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
daaeb8a821
commit
b4705ec3af
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user